How to use GREP to get the results I want?
Posted on 2006-05-31
I have to search for an expression in several log's, but the way I can use grep, the resulting file too large (few 10's of thousands of rows). Therefor there should be an exclude expression to shorten the result.
What I've done:
grep searchterm /path/* > 01
and I do get a file of 40MB.
In file 01 are terms/expression I want to exclude in the result.
How do I use grep to get all rows with "searchterm", but without "192.168.0.1" and "192.168.0.2"?