Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!usc!cs.utexas.edu!uunet!mstan!jordan From: jordan@Morgan.COM (Jordan Hayes) Newsgroups: alt.sources Subject: Re: cgname - collect file names from {e,f,}grep output Keywords: RTFM Message-ID: <286@s5.Morgan.COM> Date: 24 Jun 89 21:21:16 GMT References: <130@tridom.uucp> Reply-To: jordan@Morgan.COM (Jordan Hayes) Organization: Morgan Stanley and Co., NY, NY Lines: 20 Warren Tucker 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