Deutsch   English   Français   Italiano  
<vt1gne$nigc$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: Mon, 7 Apr 2025 21:39:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vt1gne$nigc$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 07 Apr 2025 23:39:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f78cf1e5c1ddc713eed346e8c1706a10";
	logging-data="772620"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19Qc8zRvv9HtgfRgjUpQjuN"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:Jb/r6254Vx4h1XUf0K6n4PB4daI=
Bytes: 2106

On 06 Apr 2025 08:40:54 GMT, Stéphane CARPENTIER wrote:

> Le 31-03-2025, Lawrence D'Oliveiro <ldo@nz.invalid> a écrit :
>
>> On 30 Mar 2025 22:04:45 GMT, Stéphane CARPENTIER wrote:
>>
>>> Yes, with the right option and/or with the right modification of the
>>> command line. But it's easier and faster to just add a cat than to
>>> find the "right" way to do it.
>>
>> Give an example.
> 
> 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.