Tulasi Ram wrote on Thursday, June 04, 2009 3:04 AM: > In the latest release of grep (2.5.3-1), the -f option (read search > patters from a file) is not working for me. I have tried to search by > providing pattern file. > > I have tried by using below command. It didn’t work. > > grep -F -B 10 -A 0 -f FindDeploymentErrors_Error.txt CM_Setup2.log
If your patterns end with "$" to anchor to the end of a line, and one file has DOS/Windows line endings (\r\n) while the other has unix line endings (\n), the patterns will not match. See what the following says. $ file DeploymentErrors_Error.txt CM_Setup2.log - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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/