* iproute2 - one line mode should be deprecated?
@ 2022-12-09 18:13 Stephen Hemminger
2022-12-09 18:16 ` Dave Taht
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2022-12-09 18:13 UTC (permalink / raw)
To: David Ahern; +Cc: netdev
The one line output mode of iproute2 commands was invented before I was involved.
It looks like the only real usage is for scripts to consume the output of commands.
Now that JSON is supported, the one line mode is just lingering technical debt.
Does anyone still use oneline mode?
Could it be removed in some future version of iproute?
There are still output format bugs in oneline, and some missing bits
of JSON support as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2 - one line mode should be deprecated?
2022-12-09 18:13 iproute2 - one line mode should be deprecated? Stephen Hemminger
@ 2022-12-09 18:16 ` Dave Taht
2022-12-09 18:55 ` David Ahern
0 siblings, 1 reply; 4+ messages in thread
From: Dave Taht @ 2022-12-09 18:16 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David Ahern, netdev
I'm terribly old-fashioned myself and still use one-line mode, and the
kinds of scripts I use still use awk. I may be the last one standing
here...
On Fri, Dec 9, 2022 at 10:15 AM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> The one line output mode of iproute2 commands was invented before I was involved.
> It looks like the only real usage is for scripts to consume the output of commands.
> Now that JSON is supported, the one line mode is just lingering technical debt.
>
> Does anyone still use oneline mode?
> Could it be removed in some future version of iproute?
>
> There are still output format bugs in oneline, and some missing bits
> of JSON support as well.
--
This song goes out to all the folk that thought Stadia would work:
https://www.linkedin.com/posts/dtaht_the-mushroom-song-activity-6981366665607352320-FXtz
Dave Täht CEO, TekLibre, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2 - one line mode should be deprecated?
2022-12-09 18:16 ` Dave Taht
@ 2022-12-09 18:55 ` David Ahern
2022-12-10 15:28 ` Francois Romieu
0 siblings, 1 reply; 4+ messages in thread
From: David Ahern @ 2022-12-09 18:55 UTC (permalink / raw)
To: Dave Taht, Stephen Hemminger; +Cc: netdev
On 12/9/22 11:16 AM, Dave Taht wrote:
> I'm terribly old-fashioned myself and still use one-line mode, and the
> kinds of scripts I use still use awk. I may be the last one standing
> here...
>
I use oneline a lot as well for a quick list of netdevs and network
addresses.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iproute2 - one line mode should be deprecated?
2022-12-09 18:55 ` David Ahern
@ 2022-12-10 15:28 ` Francois Romieu
0 siblings, 0 replies; 4+ messages in thread
From: Francois Romieu @ 2022-12-10 15:28 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Dave Taht, David Ahern, netdev
David Ahern <dsahern@gmail.com> :
> On 12/9/22 11:16 AM, Dave Taht wrote:
> > I'm terribly old-fashioned myself and still use one-line mode, and the
> > kinds of scripts I use still use awk. I may be the last one standing
> > here...
> >
>
> I use oneline a lot as well for a quick list of netdevs and network
> addresses.
Either that or diff as well as socket list ('ss') here.
I'm probably < 50 vs > 50 between plain 'ss' output + masochistic awk
and one line output + gory grep/sed/cut ('ss' does not even produce
json).
'ss' oneline output option differs from 'ip' one: it does not help using
either imho :o/
Deprecation then removal won't hurt me.
--
Ueimor
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-10 15:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-09 18:13 iproute2 - one line mode should be deprecated? Stephen Hemminger
2022-12-09 18:16 ` Dave Taht
2022-12-09 18:55 ` David Ahern
2022-12-10 15:28 ` Francois Romieu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).