Hi,
Need help to grep the following from a file x. I just want to grep exact match not lines and not partial word.
CONFSUCCESS
CONFFAIL
CONFPARTIALSUCCESS
>cat x
xczxczxczc zczczcxx CONFSUCCESS czczczcczc
czxxczxzxczcczc CONFFAIL xczxczcxcczczc
zczczczcz CONFPARTIALSUCCESS czczxcxzc
i tried this
grep -w "CONFSUCCESS\|CONFFAIL\|CONFPARTIALSUCCESS" x
also this, getting only matching words not the whole word
grep -o "CONF*" x
CONF
CONFF
CONF
Want result as below
CONFSUCCESS
CONFFAIL
CONFPARTIALSUCCESS
Thanks