title: Exec not outputting result to function
body: <p>How do I get the result of the find to be used by the function? I keep getting blank results.</p>
  <pre><code>#!/bin/bash
  
  #functions
  function codec_scan () {
  
   echo &quot;paremter 1 is this: $1&quot; # &gt;&gt; $fulllog
  
  }
  
  #exporting
  export -f codec_scan
  
  #Main Code
  find . -type f \( -name &quot;*.avi&quot; -o -name &quot;*.AVI&quot; -o -name &quot;*.m4v&quot; -o -name &quot;*.mkv&quot; -o -name &quot;*.mp4&quot; -o -name &quot;*.MP4&quot; \) -exec bash -c codec_scan \&quot;\{}\&quot; \;
  </code></pre>