How do I find only specific word in a file using grep.
for eg.
I want to find the word 'PRODUCT' (case insenstive)
I used the -i switch to ignore case and -w to match the whole word 'product'.
But I find matches that are
product
PRODUCT
PRODUCT_..
I think the '_'(underscore character) is considered as a word character. How do I make grep to igonre the underscore character.
Please Help.
Thanks
bcdixit
for eg.
I want to find the word 'PRODUCT' (case insenstive)
I used the -i switch to ignore case and -w to match the whole word 'product'.
But I find matches that are
product
PRODUCT
PRODUCT_..
I think the '_'(underscore character) is considered as a word character. How do I make grep to igonre the underscore character.
Please Help.
Thanks
bcdixit