How can I pipe the results of one egrep to another egrep?
Quote
One of Holmes’ enemies is the infamous femme fatale Irene Adler. Find all lines that contain the name “Adler” then run the output through egrep a 2nd time eliminating all lines that contain Irene.
Trying this with no luck.
Code
egrep -n 'Adler' Holmes.html | egrep '!Irene'
I can see there should be results but this is yielding nothing.
/edit
Never mind

Code
egrep -n 'Adler' Holmes.html | egrep -v 'Irene'
This post was edited by ROM on Nov 19 2015 05:40pm