![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Retreive content between specific lines ina file | chennaitomcruis | Shell Programming and Scripting | 4 | 04-19-2008 07:18 AM |
| grep/cat/more -- search in a txt file and display content from a specific "keyword" | I-1 | UNIX for Dummies Questions & Answers | 4 | 02-21-2007 12:57 AM |
| Search files that all contain 4 specific words | WoodenSword | Shell Programming and Scripting | 13 | 01-22-2007 02:57 AM |
| search for certain word in a files from directory | legato | UNIX for Dummies Questions & Answers | 1 | 10-31-2006 02:35 AM |
| Search all files for specific string | sureshy | UNIX for Dummies Questions & Answers | 4 | 03-06-2002 08:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
Lets say I have 3 files a.txt and b.txt and c.txt. a.txt has the following text ==================== apple is good for health b.txt has the following text ==================== apple is pomme in french c.txt has the following text ==================== orange has citric acid Now apple is a word common in both a.txt and b.txt... How do I find all the files which are containing the word apple, so that the output will be a.txt and b.txt. Please help.. |
| Forum Sponsor | ||
|
|
|
|||
|
Excuse if i am wrong
This command searched recursively and prints the file names matching the search string in its content ignoring the case. grep -r -l -i "apple" * Last edited by iamcollins; 01-03-2007 at 11:50 AM. |
|||
| Google The UNIX and Linux Forums |