title: how to touch files per each counting in loop in bash?
body: <p>I wrote a bash script and I did:</p>
  
  <pre><code> num=`wc -l /tmp/file.txt | awk '{sum += $1} END {print sum}'`
   #echo $num 
   #result is for example 29
   for i in {1..$num}
   do
         touch /tmp/pages/$i.txt
   done
  </code></pre>
  
  <p>I want to touch 1.txt till 29.txt (echo $num ==> 29)</p>
  
  <p>the result is wrong...</p>
  
  <p>how can I write a correct loop like what I said...?</p>
  
  <p>thank you in avanced</p>