grep -f option is not working in release of grep (2.5.3-1)

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Fri Jun 5 16:50:00 GMT 2009


On Thu, Jun 04, 2009 at 10:17:19PM -0700, Tulasi Ram wrote:
>I have tried by using below command. It didn?t work.
>
>$ grep -E -v -f "C:\Log\FindDeploymentErrors_Exclude.txt"
>CM_Setup2.log | grep -E -f "C:\Log\FindDeploymentErrors_Error.txt" -n
>1>"C:\Log\cc.txt"
>
>Pattern file( FindDeploymentErrors_Error.txt)is below..
>
>A member could not be added
>Access is denied
>cacl: object
>Cannot add rows to
>Error:
>ERROR:
>Error from
>Error occurred while loading document
>is not recognized as an external command
>is not recognized as an internal or external command
>Usage:
>recognized
>
>If I use above command to search patterns in  CM_Setup2.log, the
>output file cc.txt is showing only last pattern( recognized) search
>results.
>It seems it is overwriting one pattern results with next pattern
>results and finally shows the last pattern.
>I need the all pattern search results in same file i.e., cc.txt.
>
>Attached is the cygcheck.out file FYI

Did you make sure that the lines end with "\n" rather than "\r\n"?
You can run FindDeploymentErrors_Exclude.txt through d2u to make
sure.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list