[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep with file of patterns
From: |
Eli Zaretskii |
Subject: |
Re: grep with file of patterns |
Date: |
Sat, 04 Feb 2012 09:05:43 +0200 |
> From: Al Buckingham <address@hidden>
> 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