This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: grep -f problem


On CygWin:

$ echo -e "calvin\nhobbes">a
$ echo -e "calvin chased\nblah blah\nhobbes">b
$ grep -f a b
 calvin chased
 hobbes


#!sh echo -e "calvin\nhobbes" > expressions.txt echo -e "calvin chases\nhis favourite imaginary friend\nhobbes" > text.txt grep -f expressions.txt text.txt


$ ./a.sh calvin chases hobbes

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]