Deutsch English Français Italiano |
<vrtm3h$3vdid$1@news1.tnib.de> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!.POSTED.torres.zugschlus.de!not-for-mail From: Marc Haber <mh+usenetspam1118@zugschl.us> Newsgroups: comp.os.linux.misc Subject: Re: Useless Use Of Regexes Date: Tue, 25 Mar 2025 08:30:56 +0100 Organization: private site, see http://www.zugschlus.de/ for details Message-ID: <vrtm3h$3vdid$1@news1.tnib.de> References: <vrsfkv$1md7d$1@dont-email.me> <vrsjva$1oouq$1@dont-email.me> <vrso4m$1toah$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 25 Mar 2025 07:30:57 -0000 (UTC) Injection-Info: news1.tnib.de; posting-host="torres.zugschlus.de:81.169.166.32"; logging-data="4175437"; mail-complaints-to="abuse@tnib.de" X-Newsreader: Forte Agent 6.00/32.1186 Bytes: 1852 Lines: 26 Lawrence D'Oliveiro <ldo@nz.invalid> 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. I'd prefer a regexp over jq any time. But that's probably wrong. N.B.: ip addr --oneline Greetings Marc -- ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " | Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402