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