Date: Wed, 27 Sep 2006 17:38:14 -0700 From: Bill Campbell <freebsd@celestial.com> To: stable@freebsd.org Subject: Re: Fwd: Re: grep command not working as expected Message-ID: <20060928003814.GA69590@alexis.mi.celestial.com> In-Reply-To: <451AFEC6.1000404@rowyerboat.com> References: <451AFEC6.1000404@rowyerboat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 27, 2006, Stephen Allen wrote: >A simple grep command, 'grep -vf patternfile inputfile' works on Linux, >but the same command doesn't work on FreeBSD-6.1. > >To make it work I found I had to use -F to force the interpretation of >fixed-strings. I don't know why it made a difference from Linux, and >nothing in the man page appears to mention why. Traditionally one uses ``fgrep'' for that type of matching. 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/ Government spending? I don't know what it's all about. I don't know any more about this thing than an economist does, and, God knows, he doesn't know much. -- Will Rogers
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060928003814.GA69590>