Read expression for grep from standard input

Viewed 49498

How can I make grep read the expression from standard input (stdin)?

For example (the following doesn't work):

grep -i -f &0 /path/to/text/file < "/regexp/"
1 Answers
Related