title: find and grep and print the file name and line number
body: <p>I have a requirement to print all file name and line number which contain a text. </p>
  
  <pre><code>find . -name '*.cpp' -exec grep -n 'HELLO' {} \; &gt; output.txt
  </code></pre>
  
  <p>but it's only printing the content and line number not the file name . How to achieve it? I am doing it on Solaris.</p>