title: Search for a file by filename and file contents in unix
body: <p>I would like to search for a file in a unix/unix-like system that has a filename matching a regular expression <strong><em>and</em></strong> has contents matching a regular expression.</p>
  
  <p>For example, find files recursively in the path <code>/hello/there</code> such that the filename matches <code>"*.gradle"</code> and file contents matches <code>"*module*"</code>.</p>
  
  <p>This search should bring back a hit for a file named <code>build.gradle</code> with the contents <code>sometext-module-somemoretext</code></p>
  
  <p>Thanks in advance, an example would be helpful.</p>
  
  <p>EDIT: what I have already tried has been requested</p>
  
  <p>I have tried: <code>find /hello/there -type f -name '*.gradle' -exec grep 'module' {} \;</code> which gives me something close to the answer I am after, but doesn't print the file name.</p>