title: convert*bat file to .sh file
body: <p>I would like to change the batch file to *.sh file to run in linux?</p>
  
  <p>the *bat file as following:</p>
  
  <pre><code>@echo off
  rem -----------
  rem Use following two lines to input value on command line
  rem if "%1"=="" goto NoRunners
  rem set N=%1
  rem -----------
  set N=8
  
  if %N%==0 goto NoRunners
  
  cd W:\MCMC\runner1\MCMC\tracer2D\
  Echo Starting Runner 1
  Start "Runner 1" /min runner
  
  if %N%==1 goto GoHome
  
  cd W:\MCMC\runner2\MCMC\tracer2D\
  Echo Starting Runner 2
  Start "Runner 2" /min runner
  
  if %N%==2 goto GoHome
  
  cd W:\MCMC\runner3\MCMC\tracer2D\
  Echo Starting Runner 3
  Start "Runner 3" /min runner
  
  if %N%==3 goto GoHome
  
  cd W:\MCMC\runner2\MCMC\tracer2D\
  Echo Starting Runner 4
  Start "Runner 4" /min runner
  
  if %N%==4 goto GoHome
  
  cd W:\MCMC\runner3\MCMC\tracer2D\
  Echo Starting Runner 5
  Start "Runner 5" /min runner
  
  if %N%==5 goto GoHome
  
  cd W:\MCMC\runner3\MCMC\tracer2D\
  Echo Starting Runner 6
  Start "Runner 6" /min runner
  
  if %N%==6 goto GoHome
  
  cd W:\MCMC\runner3\MCMC\tracer2D\
  Echo Starting Runner 7
  Start "Runner 7" /min runner
  
  if %N%==7 goto GoHome
  
  cd W:\MCMC\runner3\MCMC\tracer2D\
  Echo Starting Runner 8
  Start "Runner 8" /min runner
  
  if %N%==8 goto GoHome
  
  cd W:\MCMC\runner3\MCMC\tracer2D\
  Echo Starting Runner 9
  Start "Runner 9" /min runner
  
  
  
  :GoHome
  cd ..\..\..\
  goto End
  
  :NoRunners
  Echo No Runners started
  
  :End
  pause
  </code></pre>