Hey guys,
Something is puzzling me!
I saw someone use the grep in the following way and I'm not sure I understand what it does, and if there's any benefit to using it this way.
Code:
grep X.X.X.X /var/log/log.log | grep -v query
I checked the man file which confirmed that -v is relating to matching non grouping lines (which I'm not sure I fully understand either!) but I don't see any difference in the output of the above command versus the same command without the | grep -v query bit..
Why would you pipe grep into grep unless you were searching for something specific within the search results?
Does query mean something else?