grep and the -f switch

Roy Jensen
Mon Nov 26 19:09:00 GMT 2012

I've created a text file (in Windows) with the text patterns I wish to
search for. Using the -f switch, grep only searches for the last
pattern in the file. If there is a blank line at the end, grep finds

grep -a -A 4 -f pattern.txt my.file > output.txt

Any suggestions to get this to work?

Roy Jensen

Roy Jensen
	*** Imagination is more important than knowledge. (Einstein)

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list