title: egrep not getting the result
body: <p>I wrote a small script which will <code>egrep</code> two patterns from the server log</p>
  
  <pre><code>pattern - 'Unable to resolve location classpath:db/migration|Processing PersistenceUnitInfo'
  </code></pre>
  
  <p>Code snippet </p>
  
  <pre><code>#/bin/sh
  ssh  tomcat@x.x.x.x egrep -e 'Unable to resolve location classpath:db/migration|Processing PersistenceUnitInfo' /usr/local/dd/logs/ddservice.log
  </code></pre>
  
  <p>Result of the execution</p>
  
  <pre><code>bash: Processing: command not found
  grep: to: No such file or directory
  grep: resolve: No such file or directory
  grep: location: No such file or directory
  grep: classpath:db/migration: No such file or directory
  </code></pre>
  
  <p>The fact is there are few keywords belonging to the above pattern. How can i modify the script to get the pattern.</p>