title: Bash string matching
body: <p>I need a single line bash command that takes a piped input and returns true or false depending if it match a string or not..</p>
  
  <p>This seems to work for the true or false part:</p>
  
  <pre><code>test `expr match "Release:11.04" "Release:11.04"` = 13 &amp;&amp; echo true || echo false
  </code></pre>
  
  <p>But I cannot get  it to work properly with the other command's output..</p>
  
  <p>What I need would be something like this:</p>
  
  <pre><code>test `expr match "`lsb_release -r`" "Release:11.04"` = 13 &amp;&amp; echo true || echo false
  </code></pre>
  
  <p>So I tried with xargs, but I can't get it to work:</p>
  
  <pre><code>lsb_release -r | xargs -I {} test `expr {} "Release: 11.04"` = 13 &amp;&amp; echo True || echo False
  </code></pre>
  
  <p>Also, if any of you happens to know a shorter way to achieve this, it would be greatly welcome.</p>