Here is the error am getting after running the script below. I have read through the other responses for the similar error but cannot find an answer. can someone see what could be going wrong with the script below?
Thanks in advance.
Error:
'bash: lowerit.sh: line 7: syntax error near unexpected token `do
'bash: lowerit.sh: line 7: ` do
Script:
for x in `ls`
do
if [ ! -f $x ]; then
continue
fi
lc=`echo $x | tr '[A-Z]' '[a-z]'`
done