grep help

2005-01-05 Thread Jay O'Brien
I want to look at all of the lines in a FreeBSD log file that do not have an entry from an IP, example 1.2.3.4. 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 ^[^1.2.3.4]*$ logfile.log Jay O'Brien Rio Linda,

Re: grep help

2005-01-05 Thread Tillman Hodgson
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 1.2.3.4. Some basic help with the use of grep would be appreciated. This is one of the arguments I've tried that didn't work:

Re: grep help

2005-01-05 Thread Bill Campbell
On Wed, Jan 05, 2005, Tillman Hodgson 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 1.2.3.4. Some basic help with the use of grep would be appreciated. This is one of

Re: grep help

2005-01-05 Thread joseph kacmarcik
grep ^[^1.2.3.4]*$ logfile.log to not match, use: grep -v 1.2.3.4 logfile.log -v, --invert-match Invert the sense of matching, to select non-matching lines. when there are multiple patterns you don't want to see, try: egrep -v '1.2.3.4|5.6.7.8' logfile.log joe

Re: grep help

2005-01-05 Thread cape canaveral
On Wed, 5 Jan 2005 22:31:54 -0600, Tillman Hodgson [EMAIL PROTECTED] 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 1.2.3.4. Some basic help with the use of grep

Re: grep help RESOLVED

2005-01-05 Thread Jay O'Brien
Tillman Hodgson (and others!)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 1.2.3.4. Some basic help with the use of grep would be appreciated. This is one of the