GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Find Files Containing Pattern |
From the current directory list any file containing strings like
ausdm04.pdf and ausdm15.pdf. Use grep
with -r
(recursive), -w
(match the whole word)
and -l
(list the filename rather than the lines found):
$ grep -rnwl . -e 'ausdm[01][0-9].pdf' |