Re: grep with file of patterns

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
> From: Al Buckingham <[email protected]>
> Date: Fri, 3 Feb 2012 14:13:56 -0500
> 
> Only the last pattern in the text file of patterns is processed
>  
> C:\cygwin>grep --fixed-strings  --file=C:\patternlist.txt  C:\code.inc > C:\GREP_OUT.txt
> Patternlist.txt contains two lines
> function
> class
> 
> Whatever pattern appears last in the file it is the one that is processed.
> All other patterns are ignored.

Cannot reproduce this here, but I don't have Cygwin installed.

Things to check/do:

 . upgrade to the latest Grep from Cygwin

 . make sure patternlist.txt has Unix-style LF-only end-of-line format

 . ask this on the Cygwin list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.