Quantcast
Channel: Java mon amour
Viewing all articles
Browse latest Browse all 1121

Linux. find broadcast address of a given network interface

$
0
0
It's grotesque how in 2019 we still have to rely on primitive, ambiguous tools like grep and awk to extract information from a linux command

This is what I could came up to "find broadcast address of a given network interface":

ip a s dev docker0 | grep "inet.*brd" | awk '{print $4}'


It's a mad world.

Viewing all articles
Browse latest Browse all 1121

Trending Articles