Date: Wed, 5 Jan 2005 20:43:38 -0800 From: Bill Campbell <freebsd@celestial.com> To: FreeBSD - questions <questions@freebsd.org> Subject: Re: grep help Message-ID: <20050106044338.GA89597@alexis.mi.celestial.com> In-Reply-To: <20050106043154.GI42299@seekingfire.com> References: <41DCBE47.4070402@att.net> <20050106043154.GI42299@seekingfire.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 the arguments I've >> tried that didn't work: >> >> grep ^[^1.2.3.4]*$ logfile.log You should probably single quote the pattern at the '^' character is an archaic synonym for the pipe symbol, and the * may be expanded by the shell. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Many citizens because of their respect for what only appears to be a law are cunningly coerced into waiving their rights due to ignorance.'' -- U.S. v. Minker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050106044338.GA89597>