cgname - collect file names from {e,f,}grep output

Derek E. Terveer det at hawkmoon.MN.ORG
Wed Jun 28 16:35:58 AEST 1989


In article <130 at tridom.uucp>, wht at tridom.uucp (Warren Tucker) writes:
> I wrote it to help me build a list of filenames to edit containing a certain
> string: 
>     fgrep BLAH *.[ch] | cgname /tmp/123 
>     vi `cat /tmp/123`

I don't suppose that either the ksh or sh constructs that follow would be
suitable replacements for this?

ksh$ vi $(grep -l BLAH  *.[ch])


sh$ vi `grep -l BLAH  *.[ch]`
-- 
Derek Terveer 	    det at hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det
		    w(612)681-6986   h(612)688-0667

"A proper king is crowned" -- Thomas B. Costain



More information about the Alt.sources mailing list