ed problem

Root Boy Jim rbj at dsys.ncsl.nist.gov
Sat Sep 2 01:24:21 AEST 1989


? From: dinah at 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 at bcm.tmc.edu 
? Baylor College of Medicine	           uucp: {rutgers,mailrus}!bcm!dinah

	Root Boy Jim and
	the GNU Bohemians



More information about the Comp.unix.questions mailing list