Need unix command file HELP!

Brian Smithson smithson at calma.UUCP
Wed Feb 5 06:02:22 AEST 1986


In article <587 at smeagol.UUCP> earle at smeagol.UUCP (Greg Earle) writes:
>> 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! :@)
>[...]
> 
How about:  nice -20 "find / -exec fgrep this-is-the-string {} \;"  ?
Better pack a lunch, though... :-)



More information about the Comp.unix mailing list