title: How can I use grep to match but without printing the matches?
body: <p>I'm new to linux shell and am trying to do this, preferably in one line, with the following condition: It can't output anything to the terminal.</p>
  
  <pre><code>/var/folder/program.exe -L parameters | grep text_to_filter &amp;&amp; echo SomeText &gt;'/tmp/Log.txt'
  </code></pre>
  
  <p>The problem is the .exe spits out XML data to terminal. I can't figure out how to grep, use the exit status, but not have the screen cluttered with the output of each match. If I use <code>/dev/null 2&gt;&amp;1</code>, it pipes it quite but then I can't grep the data. Any idea's?</p>