For example, when I do this
sudo tcpdump | grep -E '.dev:8888|ads' | grep -v 'adsl'
ALL output is suppressed for some reason, nothing is shown if I access ads.google.com
for example, it does show when I remove the grep -v
, so the base command works.
However, If I try to make a file containing:
test
test2
and do grep -E 'test|test2' | grep -v 'test2'
I get my desired output (test
). So what is the difference when it's constantly updating, and how would I use multiple options with grep
to modify the output?
grep -e ".dev:8888" -e ads
instead ofgrep -E '.dev:8888|ads'
? – MelBurslan Apr 01 '16 at 21:46| grep -v 'adsl'
no output is shown. – DisplayName Apr 01 '16 at 21:50