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/

Reply via email to