[ale] Reverse of the 'cut' program
Beddingfield, Allen
allen at ua.edu
Tue Feb 10 14:25:02 EST 2015
Would "grep -v" accomplish what you are trying to do?
"grep -v yahoo <filename>"
Allen B.
Allen Beddingfield
Systems Engineer
The University of Alabama
On 2/10/15 1:16 PM, 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 <http://google.com> or ones that yahoo.com
> <http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150210/de9033fc/attachment.html>
More information about the Ale
mailing list