title: Test : Argument Expected
body: <p>I am working on a shell script and I am getting an error saying Test : Argument expected. Its basically a sed command followed by checking if there were any errors</p>
  
  <p>Please find the below</p>
  
  <pre><code>sed "s|${var1}|${var2}|g" $FILE_PATH$FILE_NAME &gt; /tmp/$FILE_NAME
  
  if [ "$command_error" != 0 ] ; then
          date
          echo "Error $command_error reading file $WS_FILE"
          echo "File Does not exist or is not readable"
          exit 30
  fi
  </code></pre>