title: For Loop in Shell Script - add breakline in csv file
body: <p>I'm trying to use a <code>for</code> loop in a shell script.</p>
  
  <p>I am executing a command from a text file. I wish to execute each command 10 times and insert some stats into a csv file. After that command has been done, I want to start the next BUT put a line break in the CSV file after the first command that was done 10 times.</p>
  
  <p>Is the following correct:</p>
  
  <pre><code>#Function processLine
  processLine(){
  line="$@"
  for i in 1 2 3 4 5 6 7 8 9 10
  do
  START=$(date +%s.%N)
  echo "$line"
  eval $line &gt; /dev/null 2&gt;&amp;1
  
  END=$(date +%s.%N)
  DIFF=$(echo "$END - $START" | bc)
  
  echo "$line, $START, $END, $DIFF" &gt;&gt; file.csv 2&gt;&amp;1
  echo "It took $DIFF seconds"
  echo $line
  done
  }
  </code></pre>
  
  <p>Thanks all for any help</p>
  
  <h2>UPDATE</h2>
  
  <p>It is doing the loop correctly, but I can't get it to add a line break after each command is executed 10 times.</p>