title: unexpected EOF while looking for matching `"'
body: <p>I am writing a script which has command to execute as below:</p>
  
  <pre><code>cat /abc | grep -v ^# | grep -i root  | sed -e '\''s/"//g'\'' | awk '\''{print $2}'\''
  </code></pre>
  
  <p>When running the script on SunOS, i am getting below error:</p>
  
  <pre><code>test: line 1: unexpected EOF while looking for matching `"'
  test: line 3: syntax error: unexpected end of file
  </code></pre>
  
  <p>Tried with different option.. but no luck.</p>
  
  <p>Need somebody help me identify what is missing in the above command.</p>