[ale] Reverse of the 'cut' program

leam hall leamhall at gmail.com
Tue Feb 10 14:22:12 EST 2015


cat log_file.log | egrep -v "google.com|yahoo.com"

That help?

On Tue, Feb 10, 2015 at 2:16 PM, Justin Goldberg <justgold79 at gmail.com> 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
>



-- 
Mind on a Mission


More information about the Ale mailing list