Sujet : Re: Useless Use Of Regexes
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 24. Mar 2025, 23:59:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrso4m$1toah$3@dont-email.me>
References : 1 2
User-Agent : Pan/0.162 (Pokrosvk)
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.