title: bash how to print for loop output into one line?
body: <p>I wish if someone can help me with this,</p>
  
  <p>how can I print the output of for loop into single line? </p>
  
  <pre><code>for i in `cat file.csv`
  do
  echo $i 
  done
  </code></pre>
  
  <p>what I'm trying to achieve here is to get a list of numbers from file.csv to generate a mysql bulk delete statement. </p>
  
  <pre><code>delete FROM Recordtable WHERE DataID IN ('93041', '93031' ...etc);
  </code></pre>
  
  <p>and the goal here is to load every 1000 records into one single delete statement </p>
  
  <p>Your help is highly appreciated </p>