[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Grep option request
From: |
Juhana Sadeharju |
Subject: |
Grep option request |
Date: |
Fri, 10 Nov 2000 11:28:24 +0200 |
Hello.
I had to search a large mailing list archive. "grep word */*.html"
didn't work because there was too many files. I tried following:
for i in `find|grep html`; do grep Word $i; done
It worked but now there are no filename prefixes!
Following options are offered:
-h, --no-filename
Suppress the prefixing of filenames on output when
multiple files are searched.
-l, --files-with-matches
Suppress normal output; instead print the name of
each input file from which output would normally
have been printed. The scanning will stop on the
first match.
And this is my suggestion for a new one:
--yes-filename
Prefix the filename on output even when a single file is searched.
Regards,
Juhana
- Grep option request,
Juhana Sadeharju <=