|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi
$ grep -FHrn string /path/ will find occurrences of the string in files recursively, but will also find "stringing" and "strings". how can I limit it to only "string" thanks |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Gary Wessle wrote:
> Hi > $ grep -FHrn string /path/ > will find occurrences of the string in files recursively, but will > also find "stringing" and "strings". > how can I limit it to only "string" > grep -FHwire string /path/ > thanks np P.S.: It's called a word boundary. HTH, -- Stephan Grein, <stephan at stephan minus rockt dot de> https://stephan-rockt.de GnuPG-Key-ID: 0xF8C275D4 FingerPrint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4 |
|
![]() |
| Outils de la discussion | |
|
|