Deutsch English Français Italiano |
<lsp5lsFsql5U1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ralf Damaschke <rwspam@gmx.de> Newsgroups: comp.unix.shell Subject: Re: a sed question Date: 22 Dec 2024 00:43:40 GMT Organization: C.H.A.O.S. Lines: 24 Message-ID: <lsp5lsFsql5U1@mid.individual.net> References: <874j304vv3.fsf@example.com> <lshab3Fk6t3U1@mid.individual.net> <87wmfv27yy.fsf@example.com> <lsjtj8F2r8aU1@mid.individual.net> <vk3orv$1ut71$1@news.xmission.com> <lsmfo5Ffor3U1@mid.individual.net> <20241220184059.820@kylheku.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net UcmdoybqLBHMOlAHGn44Ng0KpHAenWZOYmIkvI6H+Q73triDnx Cancel-Lock: sha1:BeQzV/vAGff8RG6Qt6HppbJZrVY= sha256:O3yrJJK0gJaggQ1huXy4n4hPvXjJBDfkqE3slDJ7lkw= User-Agent: Pan/0.155 (Kherson; fc5a80b8) Bytes: 1751 Kaz Kylheku wrote: > On 2024-12-21, Ralf Damaschke <rwspam@gmx.de> wrote: >> Simply because you cannot imagine how to use it? No! > > He explained the "because", in the immediately following text that you > snipped: I don't agree with his explanation. > KMC> Seriously, the above looks like gobbledegook compared to the > equivalent in > KMC> AWK (or some other normal scripting langugae). "sed" looks like > Intercal > KMC> (once you get beyond s/foo/bar/g). For many people C looks like gobbledegook, too. > KMC> I'm sure that whatever it is that OP is trying to do, it could be > easily > KMC> translated to (say) AWK and look much nicer. That's probably true. I often prefer awk too, but that is not sufficient to state "don't use sed for anything beyond the s/foo/bar/g stage". There have been quite some tasks where I used sed.