zet

TIL ip -j Outputs JSON Data

I’ve never been a fan of ip, until today. I hate that they invented yet another syntax for the good ‘ol ifconfig output. Then I read a nice blog about UNIX philosophy in the 21st century with this example in it:

ip -j addr show dev ens33

That’s JSON output that it produces. Combine that with jq and, well, I’ll never use ifconfig again.

Tags:

#unix #json #jq #bash #scripting #linux #ip #ifconfig