Deutsch English Français Italiano |
<vtfg23$24pic$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.os.linux.misc Subject: Re: Useless Use Of Regexes Date: Sun, 13 Apr 2025 04:54:28 -0000 (UTC) Organization: A noiseless patient Spider Lines: 21 Message-ID: <vtfg23$24pic$2@dont-email.me> References: <vrsfkv$1md7d$1@dont-email.me> <67e94f0b$0$28470$426a74cc@news.free.fr> <vscc9t$2ea6d$1@dont-email.me> <67e9bffd$0$16827$426a74cc@news.free.fr> <vscr0g$2t8mk$1@dont-email.me> <67f23e16$0$5208$426a74cc@news.free.fr> <vt1gne$nigc$2@dont-email.me> <67fa4d22$0$28083$426a74cc@news.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 13 Apr 2025 06:54:28 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5a394981b73e49d36ebf2736a3771422"; logging-data="2254412"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zH7lDjYIw6Ug6C4DXkBdn" User-Agent: Pan/0.162 (Pokrosvk) Cancel-Lock: sha1:2rNFJcnNLqjGyaO4ZCVPz9KCKcM= Bytes: 1725 On 12 Apr 2025 11:23:14 GMT, Stéphane CARPENTIER wrote: > Yes. And then, I have to remove "cat". And only then can I write "grep". > Which is more difficult than just writing "| grep" at the end of the > line. Let’s see: * CTRL/A, DEL, DEL, DEL, “grep” (8 keystrokes) versus * “|grep” (5 keystrokes) That’s 60% more work. I suppose that’s a big chunk out of your working day ... Here’s an even more useless example: cat «file» | grep «pattern» | wc -l versus grep -c «pattern» «file»