[wellylug] Some help with grep

David Antliff dave.antliff at paradise.net.nz
Sun Jun 20 11:24:37 NZST 2004


On Sun, 20 Jun 2004, Jamie Dobbs wrote:

> Is there any way with grep that I can search for certain instances of
> a string (in this case an email domain) but not include a certain
> address.
>
> ie. I want to find all occurances of @domain.co.nz in the file but have it ignore
> any instances of this_address at domain.co.nz

cat thefile | grep '@domain.co.nz' | grep -v 'this_address at domain.co.nz'




More information about the wellylug mailing list