Taking Grep to a Lower Level

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: Tony Wasson
Päiväys:  
Aihe: Taking Grep to a Lower Level
> 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?


Ummm... I feel dumb since I'm not understanding. Does hostname do what you
want?

$ man hostname

HOSTNAME(1)         Linux Programmer's Manual         HOSTNAME(1)


NAME
       hostname - show or set the system's host name
       dnsdomainname - show the system's DNS domain name