Taking Grep to a Lower Level

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Andresen
Date:  
Subject: Taking Grep to a Lower Level
You could try doing a recursive find and piping it through xargs grep
'ComputerName'.

ex:
find /etc | xargs grep 'ComputerName'

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


--
--Eric Andresen