grep regex

2001-11-23 Thread Schnorbus, Patrick
hi, may you help me? i need a regex for grep, to find lines containing NOT: ^192.168 212.23.138 any ideas? TIA patrick Virengeprüft vom G DATA AntiVirenKit

Re: grep regex

2001-11-23 Thread Emil Pedersen
Schnorbus, Patrick wrote: hi, may you help me? i need a regex for grep, to find lines containing NOT: ^192.168 212.23.138 Hi. The '-v' flag inverse the meaning of grep, letting lines _not_ matching regexp through. grep -v -e ^192.168 -e 212.23.138 would skip lines starting with

Re: grep regex

2001-11-23 Thread Colin Watson
On Fri, Nov 23, 2001 at 02:33:31PM +0100, Schnorbus, Patrick wrote: may you help me? i need a regex for grep, to find lines containing NOT: ^192.168 212.23.138 grep -v '^192\.168' | grep -v '212\.23\.138' or: grep -v '\(^192\.168\|212\.23\.138\)' -- Colin Watson

Re: grep regex

2001-11-23 Thread Erik Steffl
Emil Pedersen wrote: Schnorbus, Patrick wrote: hi, may you help me? i need a regex for grep, to find lines containing NOT: ^192.168 212.23.138 Hi. The '-v' flag inverse the meaning of grep, letting lines _not_ matching regexp through. grep -v -e ^192.168 -e