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 212.23.138 > > would skip lines starting with "192.168" and lines containing > "212.23.138" (anywhere in line since there is no '^' starting the > regexp). > > Try "man grep" for a better explanation/overview of grep capabilities.
. matches any single character, if you want real dot you need \. or [.] erik