Afficher un message
Vieux 28/10/2006, 22h50   #2
Stephan Grein
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: find a string in files

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
  Réponse avec citation
 
Page generated in 0,05686 seconds with 9 queries