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
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
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
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
4 matches
Mail list logo