[NTLUG:Discuss] Command not found
Chris Cox
cjcox at acm.org
Thu Jan 25 19:04:55 CST 2007
Wayne Walker wrote:
> On Thu, Jan 25, 2007 at 05:01:43PM -0600, Chris Cox wrote:
>>Time to go hunting...
>>
>># cd /etc
>># find . -type f -print0 |
>> xargs -0 file |
>> grep -i text |
>> cut -f1 -d: |
>> tr '\012' '\000' |
>> xargs -0 grep ANT_HOME
>
> or
>
> grep -r ANT_HOME /etc
>
> gnu grep has recursive search built in.
>
While true.. this command searches non-text files, etc.
... which IS pretty safe with GNU grep.. but perhaps
a bit wasteful (depending on the size and number of
binaries).
More information about the Discuss
mailing list