# Grep exact math word

**URL:** <https://community.unix.com/t/grep-exact-math-word/377069>\
**Category:** Shell Programming and Scripting\
**Created:** [January 20, 2020, 11:32pm UTC](https://community.unix.com/t/grep-exact-math-word/377069 "2020-01-20T23:32:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmk123](https://community.unix.com/letter_avatar/bmk123/32/6_449c533f586939b6e5f246632a46421f.png) [@bmk123](https://community.unix.com/u/bmk123)\
**Post date:** [January 20, 2020, 11:32pm UTC](https://community.unix.com/t/grep-exact-math-word/377069/1 "2020-01-20T23:32:29Z")

</div>

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.

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

```

Thanks

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [January 20, 2020, 11:37pm UTC](https://community.unix.com/t/grep-exact-math-word/377069/2 "2020-01-20T23:37:50Z")

</div>

Thread closed because bmk123 refused to answer questions asked in [last post here](https://www.unix.com/303043155-post9.html):

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.
