To only display the exact match, use the -w option with grep pattern.
-w
$ ip a | grep -w inet
Source: StackOverFlowarrow-up-right
Last updated 1 year ago