From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio Subject: Re: [PATCH] Fix ss Netid column and Local/Peer_Address Date: Mon, 29 Oct 2018 23:03:07 +0100 Message-ID: <20181029230307.12919fb6@redhat.com> References: <5185850.l7bAsbzJZX@yo-gs> <20181029192036.567fc122@redhat.com> <2356588.cRoqrM3dbm@yo-gs> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Stephen Hemminger To: "Yoann P." Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39864 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727760AbeJ3Gxt (ORCPT ); Tue, 30 Oct 2018 02:53:49 -0400 In-Reply-To: <2356588.cRoqrM3dbm@yo-gs> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 29 Oct 2018 21:06:35 +0100 "Yoann P." wrote: > > By the way, why do you use column(1), when ss already prints output in > > columns? Any other issue you are working around? > > column can hide columns with "-H -" and is a bit faster than awk to output a > single column according to time, it's the only reason I mentioned it. Okay, but why do you need to hide some columns in the first place? I'm wondering if your use case would justify adding options to print selected columns only, in a generic way (right now, you can only disable some). Another possibility would be to rename "Local Address:" to "Local:" and "Peer Address:" to "Peer:" -- in some cases (UNIX sockets) it's already not so much of an address, more of a path, and "Address" doesn't really add value when the field contains an address. I don't like too much "Local_Address:" and "Peer_Address:" as the output is supposed to be human-readable by default, and that underscore just doesn't fit. -- Stefano