Using grep that matches only just a word with no "-" at the end
Hi,
I hav a log files with a bunch of lines more or less as follows:
/var/log/radius/radiusd-inner-tunnel-peap-20090812.log:Wed Aug 12 11:30:31 2009 : Auth: Login OK: [pepe] (from client Sarlanga-PVIII-I-bis port 0 via TLS tunnel)
/var/log/radius/radiusd-inner-tunnel-peap-20090812.log:Wed Aug 12 11:30:32 2009 : Auth: Login OK: [pepe2] (from client Sarlanga-PVIII-I port 0 via TLS tunnel)
I'd want to get only those lines that has Sarlanga-PVIII-I but *not* Sarlanga-PVIII-I-bis
If I use '-w' grep flag is not useful because it considers "-" as part of the word. How can I prevent it?
Thanks in advance!!
|