Grep Exact Match

To only display the exact match, use the -w option with grep pattern.

Example

$ ip a | grep -w inet

Source: StackOverFlow

Last updated