title: Creating directories with a for loop in bash
body: <p>So I would like to create x amount of Directories according to the count of a variable. </p>
  
  <pre><code>#!/bin/bash
  countOfCaptureFiles=$(wc -l &lt; allCaptures.txt)
  echo $countOfCaptureFiles
  
  start=1
  end=countOfCaptureFiles
  for((i=$start;i&lt;=$end;i++))
  do
  mkdir "SnortAlert${i}"
  done
  </code></pre>
  
  <p>In my current testing environment the value of countOfCaptureFiles is 3, so I was hoping to create 3 Directories named SnortAlert1 SnortAlert2 SnortAlert3.</p>
  
  <p>I run the script like so: ./myscript.sh</p>
  
  <p>However when I do this I get errors and no output and I believe it has something to do with assinging end=countOfCaptureFiles but I am not sure how to fix this, any help would be appreciated!</p>