title: bash script with grep and cut : command not found
body: <p>I'm new to bash, and need some simple script. It runs jar, and has to find "RESPONSE CODE:XXX". I need this response code (just XXX).  I've try this:</p>
  
  <pre><code> URL=$1
  echo $URL
  callResult=`java -jar RESTCaller.jar $URL`
  status=$?
  if [ $status -eq 0 ]; then
      result=`$callResult &gt;&gt; grep 'RESPONSE CODE' | cut -d':' -f 2`
  else
      echo error
  fi
  </code></pre>
  
  <p>I get <code>./run.sh: line 7: RESPONSE: command not found</code></p>
  
  <p>What am I doing wrong?</p>