![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Searching all files that contain pattern | ravi.sadani19 | Shell Programming and Scripting | 4 | 11-29-2008 06:52 PM |
| awk searching between two files | mac7 | Shell Programming and Scripting | 1 | 03-12-2008 12:50 PM |
| searching word in files | naamas03 | UNIX for Dummies Questions & Answers | 2 | 11-06-2006 05:26 AM |
| Searching Files | ronald_brayan | UNIX for Advanced & Expert Users | 12 | 10-20-2006 08:50 AM |
| Searching files..? | nickaren | UNIX for Dummies Questions & Answers | 4 | 09-05-2003 03:21 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Files searching
I have a list of files in directory and i should write a script if any of these files contains words given in a text file test.txt. the words can be case ignored and word should match.
The output should be the name of the directory in which the file is present followed by list of file names Eg: dirfound filefound dirfound filefound1 dirfound1 filefound <code> I traversed thrugh set of directories with ls -ltr | grep "^d" | awk '{print $9}' |
| Bookmarks |
| Tags |
| questionnaire |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|