title: get just the integer from wc in bash
body: <p>Is there a way to get the integer that wc returns in bash?</p>
  
  <p>Basically I want to write the line numbers and word counts to the screen after the file name.</p>
  
  <p><code>output: filename linecount wordcount</code>
  Here is what I have so far:
  <pre><code>files=`ls`
  for f in $files;
  do
          if [ ! -d $f ] #only print out information about files !directories
          then
                  # some way of getting the wc integers into shell variables and then printing them
                  echo "$f $lines $ words"
          fi
  done
  </pre></code></p>