Sujet : Re: Useless Use Of Regexes
De : Pancho.Jones (at) *nospam* protonmail.com (Pancho)
Groupes : comp.os.linux.miscDate : 25. Mar 2025, 13:08:36
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vru6c4$38t8r$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 3/24/25 22:59, Lawrence D'Oliveiro wrote:
On Mon, 24 Mar 2025 21:48:26 +0000, Pancho wrote:
On 3/24/25 20:34, Lawrence D'Oliveiro wrote:
>
which can be more easily written using features built into iproute2
itself:
>
ip addr show to 192.168.1.0/24
>
Seriously, though, it is often easier to filter output from a standard
command with grep, than it is to learn all the command flags.
Don’t forget the option of JSON-format output, for even easier processing
in scripts than messing around with regexes.
Forget? That presumes I ever knew. Well maybe I did, nowadays, I forget what I have forgotten.
Anyway, JSON output looks cool. However, it doesn't seem to be common for other commands.