Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site smeagol.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!oberon!smeagol!earle From: earle@smeagol.UUCP (Greg Earle) Newsgroups: net.unix,net.unix-wizards,net.wanted Subject: Re: Need unix command file HELP! Message-ID: <587@smeagol.UUCP> Date: Sat, 1-Feb-86 03:04:18 EST Article-I.D.: smeagol.587 Posted: Sat Feb 1 03:04:18 1986 Date-Received: Tue, 4-Feb-86 03:33:59 EST References: <245@aero.ARPA> Organization: Spacecraft Data Systems, JPL, Pasadena, CA Lines: 26 Xref: watmath net.unix:7004 net.unix-wizards:16642 net.wanted:8068 > We are looking for a utility that can, when given a arbitrary string, > can locate all occurences of that string anywhere on the system. Our > local Un*x gurus can't figure this out, so we are appealing to those out > in Netland to help us out. Some Gurus you got there ... > We are looking for the command to work like this: > > findstring this-is-the-string find / -exec fgrep this-is-the-string '{}' \; (UGGGHHH!) Warning! Only execute during hours when no one else is in building!! Guaranteed to tie up CPU for indefinite periods! :@) If you only want the file names, this *might* work, I'm not sure ... find / -exec "fgrep this-is-the-string '{}' | awk -F: '{print $1}'" \; (DOUBLE UGGGHHH) -- Greg Earle JPL Spacecraft Data Systems group sdcrdcf!smeagol!earle (UUCP) ia-sun2!smeagol!earle@csvax.caltech.edu (ARPA)