![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ignore some lines with specific words from file comparison | jakSun8 | Shell Programming and Scripting | 2 | 03-12-2008 08:11 PM |
| Search File for Specific Words | mevasquez | UNIX for Dummies Questions & Answers | 2 | 12-04-2007 12:31 PM |
| Tar Exclude Dir with a Specific Words | rhartleyoh | UNIX for Dummies Questions & Answers | 1 | 07-26-2007 07:53 AM |
| How to search files containing a specific word in the content | amjath78 | UNIX for Dummies Questions & Answers | 1 | 01-03-2007 11:42 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 |
|
|||
|
Search files that all contain 4 specific words
Hello,
I want an one line command that brings me back all the files in a folder that contain 4 specific words anywhere inside them. I want to use find,xargs and grep. for example i know for one word the command would be: find . | xargs grep 'Word1' But i don't know for 4 specific words what i should do. Thanx |
| Forum Sponsor | ||
|
|
|
|||
|
thank you,
but i said to the previous post this is not what i want.this will give me and the files that only contain word1 and not word2 and word3 and word4. I want the files returned to contain all 4 words.Also i want to use the commands find,xargs and grep. |
|||
| Google The UNIX and Linux Forums |