[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grep regex



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                                  [cjwatson@flatline.org.uk]



Reply to: