![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| grep command | christine33990 | UNIX for Dummies Questions & Answers | 11 | 05-05-2008 11:45 PM |
| how to exclude the GREP command from GREP | yamsin789 | UNIX for Advanced & Expert Users | 2 | 10-04-2007 11:59 PM |
| grep command help | ishmael^soyuz | Shell Programming and Scripting | 4 | 07-11-2007 06:01 AM |
| grep command | pmsuper | UNIX for Dummies Questions & Answers | 6 | 11-22-2006 03:12 AM |
| grep command | debasis.mishra | Shell Programming and Scripting | 1 | 03-27-2006 10:53 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
grep command
Hi
i am trying to grep a specific word out of a file but it is bring up every instance of the word even if it is part of another word. For example i am trying to grep the word ist, now there should be only one instance of this in the file i am grepping but it is bring up a whole list as it is finding it as part of other words. I have tried the -E, -F, -x parameters infront of grep but nothing seems to work. Can anybody help please. |
| Forum Sponsor | ||
|
|
|
||||
|
simple suggestion ...
grep '\<word\>' Filename and that should give you the exact word you're looking for every time without interfering with other whole words.. syntax..... '\<word\>' moxxx68
__________________
moxxx68 http://www.estarinformado.com.ar/apicmaxmiel/bee-diez.gif |
|
|||
|
Quote:
|
|||
| Google The UNIX and Linux Forums |