Shell script steps equivalent to windows bat scritp issue

I have shell script(sh) in that below following lines need to write equivalent to windows bat file. Any body help on this

**shell script:**

 cd $AUTOMATEDTESTHTTPDIR/../abc/Input
for i in `ls -d *`
do
  cd $i
  cp * ../../def/Unidentified/Requests
  cd ..
done

cd $AUTOMATEDTESTHTTPDIR/../abc/Output

for i in `ls -d *`
do
  cd $i
  cp * ../../def/Unidentified/Responses
  cd ..
done

cd $AUTOMATEDTESTHTTPDIR/../def/Deliver
for d in test1
         test2
         test3
     do
  mkdir $d
  for e in Requests 
           Responses
  do
    mkdir $d/$e
    mv Unidentified/$e/*$d* $d/$e
  done
done

How to write above lines in windows bat.


Source: unix

Leave a Reply