Deutsch English Français Italiano |
<EuednZ3kxtg8GWn6nZ2dnZfqnPQAAAAA@giganews.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 08 Apr 2025 02:06:25 +0000 Subject: Re: Useless Use Of Regexes Newsgroups: comp.os.linux.misc References: <vrsfkv$1md7d$1@dont-email.me> <vscr0g$2t8mk$1@dont-email.me> <67f23e16$0$5208$426a74cc@news.free.fr> <vt1gne$nigc$2@dont-email.me> <eli$2504072204@qaz.wtf> From: c186282 <c186282@nnada.net> Date: Mon, 7 Apr 2025 22:06:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <eli$2504072204@qaz.wtf> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Message-ID: <EuednZ3kxtg8GWn6nZ2dnZfqnPQAAAAA@giganews.com> Lines: 28 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-SUMdmcFQoQs9Igq3SkEPbckqHqqyE50BCP9tmfFbZJSuTJXII/139QKe6PKaKzGzUiVOUDLTKKUWS9W!2O1q01Q9JvqDeOfs/KetnWj6cLAlIxCdq5Q6WO59T1oq1Z77IhQxIKNP2ffWKuVaPW89fsnz0gz/ X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Bytes: 2616 On 4/7/25 10:05 PM, Eli the Bearded wrote: > 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. Just use nano ....