Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site edison.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!mcnc!ncsu!uvacs!edison!jso From: jso@edison.UUCP (John Owens) Newsgroups: net.unix,net.unix-wizards,net.wanted Subject: Re: Need unix command file HELP! Message-ID: <648@edison.UUCP> Date: Tue, 4-Feb-86 14:38:13 EST Article-I.D.: edison.648 Posted: Tue Feb 4 14:38:13 1986 Date-Received: Thu, 6-Feb-86 21:07:07 EST References: <245@aero.ARPA> Organization: General Electric Company, Charlottesville, VA Lines: 23 Xref: watmath net.unix:7020 net.unix-wizards:16665 net.wanted:8084 > 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@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