[Cialug] grep(1)
Todd Walton
tdwalton at gmail.com
Tue Jan 26 16:32:55 CST 2010
gnu grep(1) 2.5.1-cvs says:
-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. (-l is specified by
POSIX.)
So when I do 'grep string *.txt' am I going to get back every file
that has string in it? Or is it literally going to stop on the first
match?
It returns every file. It stops searching each particular file on the
first match, and then moves on to the next file. It's ambiguous
wording.
--
Todd
More information about the Cialug
mailing list