title: Applying Unix's Head on AWK Through Find Command
body: <p>I want to output top 10 lines of AWK command in the list of files given by find,
  using this snippet:</p>
  
  <pre><code>$ find . -name "*.txt" -print -exec awk '$9 != ""'  \| head -n10 {} \;
  </code></pre>
  
  <p>Note also that I want to print out the file names being processed.</p>
  
  <p>But why I get such error:</p>
  
  <pre><code>awk: cmd. line:2: fatal: cannot open file `|' for reading (No such file or directory)
  ./myfile.txt
  </code></pre>
  
  <p>What's the right way to do it?</p>
  
  <p>I tried without backslash before the pipe. Still it gave an error:</p>
  
  <pre><code>find: missing argument to `-exec'
  head: cannot open `{}' for reading: No such file or directory
  head: cannot open `;' for reading: No such file or directory
  </code></pre>