title: Linux find and grep command together
body: <p>I am trying to find a command or create a Linux script that can do this two comands and list the otuput</p>
  
  <pre><code>find . -name '*bills*' -print
  </code></pre>
  
  <p>this prints all the files</p>
  
  <pre><code>./may/batch_bills_123.log
  ./april/batch_bills_456.log
  ..
  </code></pre>
  
  <p>from this result I want to do a grep for a word I do this manually right now</p>
  
  <pre><code>grep 'put' ./may/batch_bill_123.log 
  </code></pre>
  
  <p>and get</p>
  
  <pre><code>sftp &gt; put oldnet_1234.lst
  </code></pre>
  
  <p>I would hope to get the file name and its match.</p>
  
  <pre><code>./may/batch_bills_123.log   sftp &gt; put oldnet_1234.lst
  ..
  ..
  and so on... 
  </code></pre>
  
  <p>any ideas?</p>