![]() |
|
|
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 |
| search for a string spread in multiple line | finder255 | Shell Programming and Scripting | 1 | 10-22-2008 05:25 PM |
| problem with grep on search string in a txt file over multiple files | m00 | UNIX for Dummies Questions & Answers | 2 | 05-18-2008 03:21 PM |
| Multiple search in multiple files | maxvirrozeito | Shell Programming and Scripting | 2 | 12-13-2007 01:32 PM |
| Search for files in multiple directories | ravikirankethe | UNIX for Dummies Questions & Answers | 7 | 10-29-2006 05:29 PM |
| string search in folders with particular multiple file extension | anikanch | UNIX for Dummies Questions & Answers | 2 | 10-28-2005 11:09 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Multiple search string in multiple files using awk
Hi, filenames: contains name of list of files to search in. placelist contains the names of places to be searched in all files in "filenames" Code:
for i in $(<filenames) do egrep -f placelist $i if [[ $? == 0 ]] then echo $i fi done >> outputfile Output i am getting: Quote:
Quote:
|
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|