title: grep for multiple strings in a single line
body: <p>I need to check if any of the strings "Added/Changed/Fixed/Deleted" are in a commit log message. I am writing an svn precommit hook, and the expected commit comment should have one of these 4 strings in the message.</p>
  
  <p>The code I am using is as below</p>
  
  <pre><code>REPOS=$1
  TXN=$2
  
  SVN="/usr/bin/svn";
  SVNLOOK="/usr/bin/svnlook";
  
  $SVNLOOK log "$REPOS" -t "$TXN" | \
  grep "[a-zA-Z0-9]" &gt; /dev/null
  
  GREP_STATUS=$?
  if [ $GREP_STATUS -ne 0 ]
  then
    "${ECHO}" "No Log comments present" &gt;&gt; "${LOG}"
     echo "Your commit has been blocked because you didn't give any log message" 1&gt;&amp;2
     echo "Please write a log message describing the purpose of your changes and" 1&gt;&amp;2
     echo "then try committing again. -- Thank you" 1&gt;&amp;2
  exit 1
  fi
  </code></pre>
  
  <p>In the above code, </p>
  
  <pre><code>$SVNLOOK log "$REPOS" -t "$TXN"
  </code></pre>
  
  <p>will give me the commit message that the user has entered. Now I have to check for the presence of any of the strings "Added, Changed, Fixed, Deleted" in the message.
  That is, </p>
  
  <pre><code>if (any of the above 4 strings are not present),
   exit 1
  </code></pre>
  
  <p>I tried with </p>
  
  <pre><code>$($SVNLOOK log -t "$TXN" "$REPOS" | grep -q "Added\|Changed\|Fixed\|Deleted"|)
  </code></pre>
  
  <p>but it doesnt seem to be working. </p>