Grep exact math word

Hi All,

i want exact math to search to find it and i tried as like below it not working.

My Excepted out : should not get the output that mean exact word math.

   echo "test.txt|123"|sed 's/|/ /g'|grep -w "test"
 

Thanks

Thread closed because bmk123 refused to answer questions asked in last post here:

Please answer all questions requested by moderators and admins if you wish to get support here. Follow the moderators. This is the "rule"... not an "ask".

This year, in 2020, I am going to insure that everyone follows the community guidelines and answers all questions that mods and admin ask.

1 Like