title: How to convert code written in batch file to shell script?
body: <p>I have a code which is written in batch script that is to be converted to shell script.</p>
  
  <p><code>for /f "tokens=2" %%s in (%EC2_HOME%\Volumes.txt) do call ec2-create-snapshot %%s</code></p>
  
  <p>The content of volume.txt is </p>
  
  <p><code>ATTACHMENT vol-f6  i-2601  /dev/sda1   attached    2013-11-20T06:42:49+0000    true
  ATTACHMENT  vol-3d3 i-e1d6  /dev/sda1   attached    2013-11-21T12:38:09+0000    true</code></p>
  
  <p>any lead is appreciated.</p>
  
  <p>Thanks </p>