On Sat, Dec 31, 2016 at 12:13:54AM +0000, Ian Jackson wrote: > newsmas...@chiark.greenend.org.uk writes ("(bogus mailing list message)"): > > In my opinion ip provides all the things you are mentioning - what are > > you missing? with -o as option the output is rather easy to parse. > > OK then, I'll bite. I just got my `ip -o addr show' on my laptop to > produce, amongst other things, this output: > > 10: secondary inet 10.2.3.4/32 scope global secondary\ valid_lft forever > preferred_lft forever > 11: home inet 10.4.5.6/32 scope global home home\ valid_lft forever > preferred_lft forever > > How is a parser supposed to know which of these words are what ?
I come back on that. This e-mail is to request to leave this thread in the year 2016. We have concencus that the install priority of net-tools should be lowered. It doesn't matter what is "easy" with "ip" or with "ifconfig|route|arp" It is important that we can let go net-tools. |> 10: secondary inet 10.2.3.4/32 scope global secondary\ valid_lft forever preferred_lft forever |> 11: home inet 10.4.5.6/32 scope global home home\ valid_lft forever preferred_lft forever |> |> How is a parser supposed to know which of these words are what ? The position of the words. Groeten Geert Stappers -- $ ip -oneline address show 1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever 1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever 2: eth0 inet 172.24.0.54/26 brd 172.24.0.63 scope global eth0\ valid_lft forever preferred_lft forever 2: eth0 inet6 2001:dc8::67d:b7ff:feca:3d68/64 scope global dynamic \ valid_lft 5013sec preferred_lft 1413sec 2: eth0 inet6 fd45:bd2a:bb0b:1800:67d:7bff:fed4:3d68/64 scope global dynamic \ valid_lft 7041sec preferred_lft 3441sec 2: eth0 inet6 fe80::67d:7bff:fed4:3d68/64 scope link \ valid_lft forever preferred_lft forever 3: wlan0 inet6 fe80::e294:67ff:fe04:cf34/64 scope link \ valid_lft forever preferred_lft forever
signature.asc
Description: Digital signature