bash script problem...or user error?
script:
# !/bin/bash
#
# Script to convert file names to lower case.
#
for i in *
do
echo $i
mv $i `echo $i | tr "[A-Z]" "[a-z]" `
done
log:
user@computer:~/ID1$ bash ~/lowercase
'home/jalal/lowercase: line 6: syntax error near unexpected token `do
'home/jalal/lowercase: line 6: `do
ive search around, found plenty of bash scripts to rename the files in a directory all to lowercase. saving them to my home dir as things such as "lowercase" and running them by "bash ~/lowercase" in the folder i .. errors?
thanks in advance!! ;-D
Last edited by Jalalabee; 09-10-2003 at 12:39 AM.
|