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