That expression will display ips of all network interfaces
ip a | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
That expression will display ips of all network interfaces
ip a | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
Comments
0 comments
Please sign in to leave a comment.