next up previous contents
Next: find Up: Useful commands Previous: date

grep

Select lines from file matching patterns.

grep PATTERN FILE

PATTERN is a regular expression.

How:

(for details of regular expression, see manpage on regex - man 7 regex)



System Administrator
Thu Jul 26 11:24:05 HKT 2001