If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > searching text in a file in the current directory and all the subdirectories

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-05, 11:32
gomes009 gomes009 is offline
Registered User
 
Join Date: Feb 2004
Posts: 37
searching text in a file in the current directory and all the subdirectories

I am trying to search "PATTERN" in one of the files from the current directory and all the subdirectories.

Any help is appreciated..
Reply With Quote
  #2 (permalink)  
Old 01-18-05, 11:38
vgersh99 vgersh99 is offline
Registered User
 
Join Date: Apr 2004
Location: Boston, MA
Posts: 325
man find

find . -type f | xargs grep 'PATTERN'
__________________
vlad
+-----------------------+
| #include <disclaimer.h> |
+-----------------------+
Reply With Quote
  #3 (permalink)  
Old 01-18-05, 11:42
gomes009 gomes009 is offline
Registered User
 
Join Date: Feb 2004
Posts: 37
Thanks Vlad..

You have been a great help!!
Reply With Quote
  #4 (permalink)  
Old 02-21-05, 15:30
vjkiran vjkiran is offline
Registered User
 
Join Date: Feb 2005
Posts: 10
opened as new thread

Last edited by vjkiran; 02-21-05 at 15:36.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On