Re: Useless Use Of Regexes

Liste des GroupesRevenir à col misc 
Sujet : Re: Useless Use Of Regexes
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.os.linux.misc
Date : 08. Apr 2025, 03:05:04
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2504072204@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.os.linux.misc, Lawrence D'Oliveiro  <ldo@nz.invalid> wrote:
On 06 Apr 2025 08:40:54 GMT, Stéphane CARPENTIER wrote:
A lot of time I run cat to find some information in a file. And when the
file is bigger than expected, I'll just grep its output. Of course,
it's better to directly grep the file, but it's easier and faster to add
a grep at the end of the previous command than to either write directly
the right command or to go at the beginning of the line to remove the
cat and put grep instead. Mostly when the name of the file is long in a
far remote directory.
You do have command-line editing enabled, right? You just press the HOME
key (or CTRL/A) to go to the start of the line.

Very presumptious to assume emacs style line editing, isn't it?

To go back in history, I type <ESC>k and then I'm at the start of the
line of the most recent command. On the current line I'd type <ESC>^
but <ESC><HOME> would work.

But really, I don't think it is proper to care about inefficent use of
commands at the command line. Go ahead and judge in a script or
documentation (or an example posted to Usenet), but what people do in
the privacy of their own shell is their business.

Elijah
------
uses <HOME>/<END> pretty much exclusively in GUI tools like browsers

Date Sujet#  Auteur
24 Mar 25 * Useless Use Of Regexes66Lawrence D'Oliveiro
24 Mar 25 +* Re: Useless Use Of Regexes29Pancho
24 Mar 25 i+- Re: Useless Use Of Regexes1The Natural Philosopher
24 Mar 25 i+* Re: Useless Use Of Regexes26Lawrence D'Oliveiro
25 Mar 25 ii+* Re: Useless Use Of Regexes3Marc Haber
26 Mar 25 iii`* Re: Useless Use Of Regexes2Lawrence D'Oliveiro
26 Mar 25 iii `- Re: Useless Use Of Regexes1Marc Haber
25 Mar 25 ii+* Re: Useless Use Of Regexes21Anssi Saari
25 Mar 25 iii`* Re: Useless Use Of Regexes20Marc Haber
26 Mar 25 iii +* Re: Useless Use Of Regexes16Lawrence D'Oliveiro
26 Mar 25 iii i`* Re: Useless Use Of Regexes15Marc Haber
26 Mar 25 iii i `* Re: Useless Use Of Regexes14Lawrence D'Oliveiro
26 Mar 25 iii i  +* Re: Useless Use Of Regexes12Marc Haber
27 Mar 25 iii i  i`* Re: Useless Use Of Regexes11Lawrence D'Oliveiro
27 Mar 25 iii i  i `* Re: Useless Use Of Regexes10Marc Haber
27 Mar 25 iii i  i  `* Re: Useless Use Of Regexes9Lawrence D'Oliveiro
27 Mar 25 iii i  i   `* Re: Useless Use Of Regexes8Marc Haber
27 Mar 25 iii i  i    `* Re: Useless Use Of Regexes7Lawrence D'Oliveiro
28 Mar 25 iii i  i     +* Re: Useless Use Of Regexes5marrgol
28 Mar 25 iii i  i     i+* Re: Useless Use Of Regexes3Chris Ahlstrom
28 Mar 25 iii i  i     ii`* Re: Useless Use Of Regexes2rbowman
29 Mar 25 iii i  i     ii `- Re: Useless Use Of Regexes1Chris Ahlstrom
28 Mar 25 iii i  i     i`- Re: Useless Use Of Regexes1Lawrence D'Oliveiro
1 Apr 25 iii i  i     `- Re: Useless Use Of Regexes1Wayne
27 Mar 25 iii i  `- Re: Useless Use Of Regexes1c186282
26 Mar 25 iii `* Re: Useless Use Of Regexes3c186282
26 Mar 25 iii  `* Re: Useless Use Of Regexes2rbowman
27 Mar 25 iii   `- Re: Useless Use Of Regexes1c186282
25 Mar 25 ii`- Re: Useless Use Of Regexes1Pancho
30 Mar 25 i`- Re: Useless Use Of Regexes1Stéphane CARPENTIER
25 Mar 25 +- Re: Useless Use Of Regexes1Ben Collver
30 Mar 25 `* Re: Useless Use Of Regexes35Stéphane CARPENTIER
30 Mar 25  `* Re: Useless Use Of Regexes34Lawrence D'Oliveiro
30 Mar 25   `* Re: Useless Use Of Regexes33Stéphane CARPENTIER
31 Mar 25    `* Re: Useless Use Of Regexes32Lawrence D'Oliveiro
6 Apr 25     `* Re: Useless Use Of Regexes31Stéphane CARPENTIER
7 Apr 25      `* Re: Useless Use Of Regexes30Lawrence D'Oliveiro
8 Apr 25       +- Re: Useless Use Of Regexes1c186282
8 Apr 25       +* Re: Useless Use Of Regexes21Eli the Bearded
8 Apr 25       i+- Re: Useless Use Of Regexes1c186282
8 Apr 25       i+- Re: Useless Use Of Regexes1Lawrence D'Oliveiro
8 Apr 25       i+* Re: Useless Use Of Regexes17Anssi Saari
9 Apr 25       ii`* Re: Useless Use Of Regexes16Lawrence D'Oliveiro
9 Apr 25       ii +* Re: Useless Use Of Regexes13c186282
9 Apr 25       ii i`* Shell command history (was: Useless Use Of Regexes)12Geoff Clare
12 Apr 25       ii i `* Re: Shell command history (was: Useless Use Of Regexes)11Lawrence D'Oliveiro
13 Apr 25       ii i  +- Re: Shell command history (was: Useless Use Of Regexes)1Eli the Bearded
14 Apr 25       ii i  `* Re: Shell command history9Nuno Silva
14 Apr 25       ii i   `* Re: Shell command history8Lawrence D'Oliveiro
16 Apr 25       ii i    +* Re: Shell command history6Eli the Bearded
16 Apr 25       ii i    i+- Re: Shell command history1Andreas Eder
16 Apr 25       ii i    i`* Re: Shell command history4Lawrence D'Oliveiro
18 Apr 25       ii i    i `* Re: Shell command history3Eli the Bearded
19 Apr 25       ii i    i  `* Re: Shell command history2Lawrence D'Oliveiro
20 Apr 25       ii i    i   `- Re: Shell command history1Eli the Bearded
18 Apr 25       ii i    `- Re: Shell command history1Nuno Silva
9 Apr 25       ii `* Re: Useless Use Of Regexes2Anssi Saari
12 Apr 25       ii  `- Re: Useless Use Of Regexes1Lawrence D'Oliveiro
12 Apr 25       i`- Re: Useless Use Of Regexes1Stéphane CARPENTIER
12 Apr 25       `* Re: Useless Use Of Regexes7Stéphane CARPENTIER
13 Apr 25        `* Re: Useless Use Of Regexes6Lawrence D'Oliveiro
13 Apr 25         +* Re: Useless Use Of Regexes4Stéphane CARPENTIER
14 Apr 25         i`* Re: Useless Use Of Regexes3Lawrence D'Oliveiro
17 Apr 25         i `* Re: Useless Use Of Regexes2Stéphane CARPENTIER
18 Apr 25         i  `- Re: Useless Use Of Regexes1Lawrence D'Oliveiro
13 Apr 25         `- Re: Useless Use Of Regexes1candycanearter07

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal