title: How to get "wc -l" to print just the number of lines without file name?
body: <pre><code>wc -l file.txt
  </code></pre>
  
  <p>outputs number of lines and file name.</p>
  
  <p>I need just the number itself (not the file name).</p>
  
  <p>I can do this</p>
  
  <pre><code> wc -l file.txt | awk '{print $1}'
  </code></pre>
  
  <p>But maybe there is a better way? </p>