title: How to combine two commands in linux?
body: <p>I would like to know how to combine two commands. For example if I need to return the number of lines and number of words, how can I use a single command to get the data?</p>
  
  <p>When I do I am using two commands separately. Here is the way how I have used.</p>
  
  <p><code>wc -l filename</code>  (this is to get the number of lines)<br>
  <code>wc -w filename</code>  (this is to get the number of words)</p>
  
  <p>Is there any way to get both using a single command?</p>
  
  <p>Thanks in advance </p>