title: echo: command not found. in shell script
body: <pre><code>echo 'Working Space'
  read dirname #directory 
  if [ -n &quot;$dirname&quot; ]
  
  ...
  
  fi
  for dir in *
  do
  
  newname=`echo $dir | tr &quot;[a-z] [A-Z]&quot; &quot;[A-Z] [a-z]&quot;` 
  mv $dir $newname 
  done
  ~                                                                                                                                                    
  ~                                                                                                                                                    
  ~                                                                                                                                                    
  ~                                                                                                                                                    
  ~                                                                                                                                                    
  ~                                                                                                                                                 
  </code></pre>
  <p>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.</p>
  <p>./utol.sh: line 1: echo: command not found</p>
  <p>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.</p>
  <p>Can anybody help me? Thanks.</p>