[ale] Reverse of the 'cut' program
Jim Kinney
jim.kinney at gmail.com
Tue Feb 10 14:25:05 EST 2015
grep -v "string to not see" <log file>
On Tue, 2015-02-10 at 14:16 -0500, Justin Goldberg wrote:
> I am trying to parse a log file and exclude the lines that contain any
> one of a few different strings, for example "don't show ones that
> contain google.com or ones that yahoo.com" for example.
>
> I'm guessing that sed or awk would fit this purpose.
>
> I looked on the web but didn't find any examples that made sense to
> this Linux newbie.
>
> Any replies or pointers will be greatly appreciated!
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
--
James P. Kinney III
Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.
- Speech 11/23/1900 Mark Twain
http://heretothereideas.blogspot.com/
More information about the Ale
mailing list