Shell Command Question
Ben Beeson
beesond001 at hawaii.rr.com
Fri Sep 8 09:51:59 PDT 2000
Steve,
Here is another way taken from a similar problem I solved a few days
ago. My solution parses a different file and ignores the entries to 127.0.0.1:
cat /var/log/secure | grep "in.ftpd" | egrep -v '(127.0.0.1)' | mail -s ya
da ya da.....
The trick I think you are looking for is the egrep -v command. That matches
all those entries that don't match the regex. I hope this is what you need.
Good Luck,
Ben Beeson
More information about the LUAU
mailing list