Monday, 20 May 2013

Bash syntax error: unexpected end of file with for loop

Bash syntax error: unexpected end of file with for loop

#!/bin/bash

cp ./Source/* ./Working/ 2> /dev/null
echo "Done"


for filename in *.zip;do unzip “$filename”;
 done
In the above script, I am trying to copy all the files from source to working and unzip the files in working folder but I am geting igetting an error unexpected end of file

No comments:

Post a Comment