Need unix command file HELP!

John Owens jso at edison.UUCP
Wed Feb 5 05:38:13 AEST 1986


> We are looking for the command to work like this:
> 
> findstring this-is-the-string
> 
> The utility would return all the files (and their pathnames from the
> root) to the screen. Of course if the protections on the file indicate
> that the file cannot be read, the program should ignore that file and keep
> on going. We think it can be done using a command file using the 'ls'
> and 'awk' commands but we just can get it right.
> 
> sutton at aerospace.ARPA
> {ihnp4!sdcrdcf,randvax,trwrb} ! aero ! sutton

find / -type f -exec fgrep -l $1 {} \; 2>/dev/null

-- 

			   John Owens
General Electric Company		Phone:	(804) 978-5726
Factory Automated Products Division	Compuserve: 76317,2354
	       houxm!burl!icase!uvacs
...!{	       decvax!mcnc!ncsu!uvacs	}!edison!jso
		 gatech!allegra!uvacs



More information about the Comp.unix mailing list