![]() |
|
|
|
|
|||||||
| 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 |
| Grep help | flood | Shell Programming and Scripting | 3 | 06-05-2008 10:14 PM |
| Grep | Aejaz | UNIX for Advanced & Expert Users | 3 | 04-30-2008 04:10 AM |
| grep | dineshr85 | Shell Programming and Scripting | 1 | 10-10-2007 01:52 AM |
| how to exclude the GREP command from GREP | yamsin789 | UNIX for Advanced & Expert Users | 2 | 10-04-2007 11:59 PM |
| Make grep -c display like grep -n? | Jerrad | Shell Programming and Scripting | 2 | 08-24-2006 09:20 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
ls and grep
hi,
i am working on bash shell i have a dir lets say "abc" in this dir there are several dirs. in these dir there are some files i want to find some text lets say "cool" in all the files in abc dir and it should display all such files... also i want to write this command at $ promt.. can anyone tell me... thanks in advance... |
| Forum Sponsor | ||
|
|
|
|||
|
Command line answer
$ grep "cool" `find dir. path`
Ex: Searching for a word "DATE" in all the files and subdirectories in "Sgwtools" dir. $ grep "DATE" `find Sgwtools` Sgwtools/sam/dummy Sgwtools/genBGwPDPfiles.sh Sgwtools/genBGwPDPfiles.sh:echo $DATENOW Sgwtools/genBGwPDPfiles.sh:#getNewTime $DATENOW $2 $ |
|||
| Google The UNIX and Linux Forums |