To only display the exact match, use the -w option with grep pattern.
-w
$ ip a | grep -w inet
Source: StackOverFlow
Last updated 3 months ago