in reply to Re: pattern search in all the files in a directory
in thread pattern search in all the files in a directory
Actually I am not able to take an exact move at this point. I thought of using find(subroutine,directory_path) and inside the sub-routine I want to traverse through the entire directory for all its entries. For every entry I want to put a check whether it is a readable file or not. If the file is readable, I want to search for the required pattern "keyword : Multinode" in the file found. If we hit with a success, the entire find command should result in a non-empty string(preferably only the existing directory Name) otherwise with an empty string. Please let me know if you need any further information
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: pattern search in all the files in a directory
by 2teez (Vicar) on Feb 19, 2013 at 07:46 UTC | |
by Bharath666 (Novice) on Feb 19, 2013 at 09:58 UTC | |
by 2teez (Vicar) on Feb 19, 2013 at 14:33 UTC |