home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- From: pep@wicked.demon.co.uk (Phil Packer)
- Path: sparky!uunet!pipex!demon!wicked.demon.co.uk!pep
- Subject: Re: TextSearch under Linux
- Reply-To: pep@wicked.demon.co.uk
- References: <7-PCNews-124beta@alpha.saar.de>
- Distribution: world
- X-Mailer: cppnews $Revision: 1.30 $
- Organization: No chance
- Lines: 39
- Date: Sun, 24 Jan 1993 22:41:51 +0000
- Message-ID: <727940511snx@wicked.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <7-PCNews-124beta@alpha.saar.de> georg@alpha.saar.de (Georg Edelmann) writes:
- > Hello Linux-World,
- >
- > I'm quite sure that anyone had this problem too :
- >
- > what's the shell command(s) for searching text in files recursively
- > in all subdirectories from a given point in FS tree ?
- >
- > Thanks for help.
- >
- > Georg
- >
- >
- > ----
- > Georg Edelmann Telephone: 49-7643-8807
- > georg@alpha.saar.de Address: Dragonerstrasse 47
- > D 7834 Herbolzheim 4
- > Germany
- >
-
- I find that
-
- grep "something" `find / -name "fred.txt" -print`
-
- will find "something" in all files called "fred.txt" anywhere in the filesystem
-
- Edit to taste!
-
- Phil 8-)
-
- ps you _do_ (IMHO) need all the quotes if you have wildcards in this anywhere!
- +-----------------------------+----------------------------------------------+
- |Phil Packer | pep@wicked.demon.co.uk (home) |
- |165 Stourton Avenue Hanworth | pep@cix.compulink.co.uk (home) |
- |Middlesex, England TW13 6LD | pp1071bh.bbc-bh@radio.bbc.co.uk (someday) |
- | 044 +81 898 0101 | PP1071BH@BBC-BH [via NHUB] (MHS) |
- | #include <very_long_x400_address.h> |
- | wicked is not associated with any other demon dial-up site |
- +----------------------------------------------------------------------------+
-