Date: Wed, 5 Jan 2005 20:43:50 -0800 From: joseph kacmarcik <freebsd-questions@chubbo.net> To: freebsd-questions@freebsd.org Subject: Re: grep help Message-ID: <1104986630.41dcc206e3e4f@mail.chubbo.net> In-Reply-To: <41DCBE47.4070402@att.net> References: <41DCBE47.4070402@att.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1104986630.41dcc206e3e4f>