GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Find Files Containing Specific String |
20200917 From the current directory list any file
containing strings like ausdm04 and ausdm15. 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]' |