![]() |
|
|
|
|
|||||||
| 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 |
| How to negate grep result? | mmdawg | Shell Programming and Scripting | 4 | 05-05-2008 05:24 AM |
| diaplaying the grep result | rag84dec | Shell Programming and Scripting | 1 | 03-26-2008 11:37 PM |
| grep exclude/find single and double quotes | Lindy_so | UNIX for Dummies Questions & Answers | 4 | 03-06-2008 06:01 AM |
| grep to handle a 0 result | ocelot | UNIX for Dummies Questions & Answers | 6 | 02-05-2007 08:19 AM |
| To have a numeric result from grep | Hak Dee | UNIX for Dummies Questions & Answers | 2 | 08-07-2006 04:26 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Elimincating double result when using find and grep
Hi,
i am using the command Code:
find . -exec grep -i "sometexttofoundinfiles" '{}' \; -print
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Code:
find . -exec grep -i "sometexttofoundinfiles" '{}' \;
Code:
find . -exec grep -q -i "sometexttofoundinfiles" '{}' \; -print
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|