title: -exec wc -l {} \; prints count and path, I just need count
body: <pre class="lang-sh prettyprint-override"><code>Lines=(find $FILEDIRECTORY -iname &quot;*$FILEENDING&quot; -exec wc -l {} \;)
  
  </code></pre>
  <p>The User can put in his path and file ending and it should count how many  lines each program has... if User just <code>wc -l</code> it prints me out how man files I have with that file ending what I want is:</p>
  <pre><code>100
  78
  45
  </code></pre>
  <p>So from every file the lines</p>