grep exact letters
I used grep everyday. However, is there a parametes to grep an exact word. Let's say there is a word nelso, nels, nelson. If I grep "nels", it will show the three. Can I do a grep where it wil only display "nels" and not including nelson and nelso?
|
Use the word-boundry metacharacter.
Code:
]$ cat huh Code:
grep '\bnels\b' huh Cheers, Tink |
All times are GMT -5. The time now is 09:41 PM. |