somniosus at gmail.com
Wed Jan 5 20:45:26 PST 2005
On Wed, 5 Jan 2005 22:31:54 -0600, Tillman Hodgson
<tillman at seekingfire.com> wrote:
> On Wed, Jan 05, 2005 at 08:27:51PM -0800, Jay O'Brien wrote:
> > I want to look at all of the lines in a FreeBSD log file that do not
> > have an entry from an IP, example 22.214.171.124. Some basic help with the
> > use of grep would be appreciated. This is one of the arguments I've
> > tried that didn't work:
> > grep ^[^126.96.36.199]*$ logfile.log
> I like `grep -v` for "not" operations. Also note that "." is itself a
> special character.
> grep -v 1\.2\.3\.4 logfile.log
> might be closer to what you want.
> "'Way back, I set myself to be a happy man, and made it."
> -- Louis Armstrong
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
grep "188.8.131.52" logifle.log works for me (unless you were trying to
pull all IPs in the form of a.b.c.d ?)
More information about the freebsd-questions