title: Filter lines using grep -v
body: <p>I am trying to filter out lines that don't contain the file names as below using the following command but I am not sure why line with permission denied keeps coming in my result.  It should be gone when I have used <code>grep -v "total|denied"</code>.</p>
  
  <pre><code>wc -l *.*   | egrep  -v "total|denied"  | sort -nr -k1,1
  
  wc: host.save: Permission denied
  33301 apache-maven-3.5.3-bin.tar.gz
  14149 jenkins-cli.jar
   240 examples.desktop
    19 list.py
    19 interview_GL.sh
    17 lines.txt
     7 number.py
  </code></pre>