[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Reverse of the 'cut' program
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