![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looping question | hemangjani | Shell Programming and Scripting | 2 | 02-24-2006 12:47 PM |
| search question | kf199 | UNIX Desktop for Dummies Questions & Answers | 1 | 12-27-2005 06:20 PM |
| Perl question - looping through an array of hashrefs | kregh99 | Shell Programming and Scripting | 2 | 03-19-2004 10:48 AM |
| nested looping question | Sn33R | Shell Programming and Scripting | 7 | 09-26-2003 03:14 PM |
| looping question | hedrict | UNIX for Dummies Questions & Answers | 1 | 03-11-2002 04:19 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
looping search question
This is my requirement--
I have a list file that contains a list of 50 words. eg word1 word2 word3 I want to search/grep for each of those words in a directory/and subdirectories and list the file in which that word exists. Ne ideas for script/command? I know grep -r <pattern> /direaddress will search for existence of a pattern in all files in a directory...but how will i grep for a pattern in a filelist in directory/subdirectories. Last edited by alfredo123; 11-15-2006 at 04:03 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|