Any chance that there's a file with a "--" in its name? When the shell
expands your wild card, it passes the results to fgrep literally, so fgrep
might be interpreting this as
fgrep [options] [pattern] [file0 file1 file2] -- [file3]...[fileN]
When it sees the double-dash, it expects the next string to be a long option.
On Wed, Sep 13, 2000 at 01:16:01PM -0700, Steve Dixon wrote:
> I wonder if there is a restraint on the number of files in a directory
> fgrep will work on - is it something that can be increased? See below:
>
> eb@dpnz src]$ cd ../src6
> [deb@dpnz src6]$ fgrep -n DNADD * | more
> AEADD:63::: CHAINR TO DNADD if account is 'D'
> AEADD:116::: DNADD
> AEADD:2747:::: to pass fields to DNADD
> AEADD:2758: MOVE 'DNADD' TO WS-CHAINR-PROGRAM
> AEADD:2762::: 5/17/00 added to clear shead from DNADD
>
> [deb@dpnz src6]$ cd ../src
> [deb@dpnz src]$ fgrep -n DNADD * | more
> fgrep: invalid option -- -
> Usage: fgrep [OPTION]... PATTERN [FILE]...
> Try `fgrep --help' for more information.
>
> It worked when I was in a directory with very few files, but gave me an
> error in a directory that had many more files. This is on 6.2 w/grep
> 2.4 that came installed stock.
> --
> ---------------------
> Steve Dixon
> Dpn, Incorporated
> Systems Administrator
> Phone - 702.873.3282
> Email - [EMAIL PROTECTED]
> ---------------------
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
--
Michael Jinks, IB
Systems Administrator, CCCP
finger [EMAIL PROTECTED] for public key
Vote Duke! http://www.entertaindom.com/pages/duke2000/home.jsp
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list