cgname - collect file names from {e,f,}grep output
Jordan Hayes
jordan at Morgan.COM
Sun Jun 25 07:21:16 AEST 1989
Warren Tucker <wht at tridom.uucp> writes:
>>> fgrep BLAH *.[ch] | cgname /tmp/123
>>> vi `cat /tmp/123`
>>> {awk,sed,perl}-fanatic flames > /dev/null
Sure, awk/sed/perl could do the same, but what about this:
% vi `fgrep -l BLAH *.[ch]`
% vi `fgrep -l BLAH *.[ch] | tee /tmp/123` # if you want the list
or
% alias vl vi '`fgrep -l \!*`' # c-shell
% vl BLAH *.[ch]
"When I was a boy, we didn't even *have* manuals ..."
/jordan
More information about the Alt.sources
mailing list