Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!xadmx!rbj@dsys.ncsl.nist.gov From: rbj@dsys.ncsl.nist.gov (Root Boy Jim) Newsgroups: comp.unix.questions Subject: ed problem Message-ID: <20765@adm.BRL.MIL> Date: 1 Sep 89 15:24:21 GMT Sender: news@adm.BRL.MIL Lines: 16 ? From: dinah@krebs.bcm.tmc.edu See my other posting on this. ? #! /bin/sh ? for files in `grep -i AA_ *.c | awk -F: '{ print $1 }' | sort -u` There is no need to use awk. "Grep -l pattern files" prints the list of files in which pattern appears, and quits searching each file when the first occurance of pattern is found. ? Dinah Anderson internet: dinah@bcm.tmc.edu ? Baylor College of Medicine uucp: {rutgers,mailrus}!bcm!dinah Root Boy Jim and the GNU Bohemians