[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-grep] Re: fgrep bug
From: |
Tim Waugh |
Subject: |
Re: [bug-grep] Re: fgrep bug |
Date: |
Thu, 2 Dec 2004 12:24:22 +0000 |
User-agent: |
Mutt/1.4.1i |
On Wed, Dec 01, 2004 at 07:28:41PM -0700, Bob Proulx wrote:
> > address@hidden writes:
> > > http://www.redhat.com/archives/redhat-list/2000-September/msg01325.html
>
> > fgrep foo blah --- blah # that's three - signs
>
> Try telling grep that there are no more options.
>
> fgrep -- foo blah --- blah # that's three - signs
>
> That will avoid the --- being seen as an option. This is generally a
> good thing when processing random files.
>
> grep -- pattern $randomfilelist
For globbing you also need to use patterns such as ./* instead of just
* to be sure that files named "-" are not taken to be standard input.
Tim.
*/
pgp1vsj_2uCKX.pgp
Description: PGP signature