On 06/26/2010 07:00 AM, Mohit Singh wrote:
Hi
Need some help. On an embedded system being minimalistic 'grep -w'
does not work. Please let me know if somebody can emulate the behavior
by using some other tool.
10x in advance
GAURAV
How about grep -P '\b[pattern]\b'
I don't know if it will work as expected, but as far as I know, string
enclosed between \b and \b is expected to match a word in perl regex.
--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
Cheap and Reliable VPS Hosting: http://j.mp/arHk5e
--
l...@iitd - http://tinyurl.com/ycueutm