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,
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:
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
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
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
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