echo 'Working Space'
read dirname #directory
if [ -n "$dirname" ]
...
fi
for dir in *
do
newname=`echo $dir | tr "[a-z] [A-Z]" "[A-Z] [a-z]"`
mv $dir $newname
done
~
~
~
~
~
~
I'm new to shell script. I have some problem with command echo. It's my school assignment and my assistant gave me the template code. However the first line which contains command 'echo' he gave got me an error.
./utol.sh: line 1: echo: command not found
I checked path /bin whether it contains echo command, and simple command like 'echo hi' works well in my terminal, so I'm guessing this problem is not related with echo itself but other lines.
Can anybody help me? Thanks.