Taking Grep to a Lower Level

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: David Mandala
Date:  
Subject: Taking Grep to a Lower Level
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 -
> 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/