Taking Grep to a Lower Level

David Mandala plug-discuss@lists.plug.phoenix.az.us
05 Nov 2002 15:39:51 -0700


in the / directory grep -r ComputerName * will walk the directories BUT
you really don't want to do this as grep will walk the binary files too.

Since you want to change the name in a Red Hat 7.2 system just use the
command in /etc not in / The files you want are in /etc and
/etc/sysconfig

Cheers,

Davidm
 
On Tue, 2002-11-05 at 15:26, George Gambill wrote:
> Need to change the "computer name" without reloading RH 7.2.
> 
> Looking at the man pages for Grep, it (grep) seems to only look in the
> current directory.
> 
> How can I grep 'ComputerName' through all subdirectories?
> 
> Thnx
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
-- 
David IS Mandala
gpg fingerprint 8932 E7EF CCF5 1B8C 1B5C  A92E C678 795E 45B2 D952
Phoenix, AZ (480) 460-7546 HP, (602) 321-8277 CP
http://www.them.com/~davidm/