![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find , grep | james94538 | UNIX for Dummies Questions & Answers | 3 | 10-09-2008 06:03 PM |
| grep, find or awk? | netrom | UNIX for Dummies Questions & Answers | 4 | 04-09-2008 02:03 PM |
| grep and find | MEllis5 | UNIX for Dummies Questions & Answers | 1 | 04-07-2008 05:16 AM |
| find then grep | flame_eagle | Shell Programming and Scripting | 7 | 03-13-2008 08:19 AM |
| find and grep | sarwan | High Level Programming | 4 | 04-10-2006 04:05 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
Quote:
|
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
||||
|
||||
|
Quote:
|
|
#11
|
||||
|
||||
|
find . -exec grep string {} /dev/null \;
As I recall, there is often a problem using
Code:
find . -exec grep string {} /dev/null \;
Code:
find . -type r -exec grep string {} /dev/null \;
|
|
#12
|
||||
|
||||
|
Well I usually narrow it down a bit. Something like:
find . -name \*.h -exec grep <<I>etc</I>> Another good one is something like this: grep <string> `file * | egrep 'script|text' | awk -F: '{print $1}'` Not perfect, but I've used it a few times. A little more complicated to do recursive this way though... [Edited by PxT on 02-01-2001 at 11:22 AM] |
||||
| Google The UNIX and Linux Forums |