Deutsch English Français Italiano |
<t144rj$sjk$1@shakotay.alphanet.ch> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED.localhost!not-for-mail From: Marc SCHAEFER <schaefer@alphanet.ch> Newsgroups: fr.comp.usenet.serveurs Subject: Re: Extension au protocole NNTP Date: Sat, 19 Mar 2022 08:39:15 -0000 (UTC) Organization: Posted through ALPHANET Message-ID: <t144rj$sjk$1@shakotay.alphanet.ch> References: <t0snkc$b58$1@shakotay.alphanet.ch> <t0upik$vpm$1@rasp.pasdenom.info> <t12k0p$flm4$1@news.trigofacile.com> <t12l29$318$1@shakotay.alphanet.ch> <t12nf9$fng5$1@news.trigofacile.com> <t12nve$eof$1@shakotay.alphanet.ch> <t12osv$foc4$1@news.trigofacile.com> <t12p5h$ka0$1@shakotay.alphanet.ch> <t138lh$cab$1@news.gegeweb.eu> <t13t8j$gl4q$1@news.trigofacile.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 19 Mar 2022 08:39:15 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-host="localhost:127.0.0.1"; logging-data="29300"; mail-complaints-to="usenet@alphanet.ch" User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-18-amd64 (x86_64)) Cancel-Lock: sha256:DwXhH48PV4wbl9JJZBeb84PHVLP18ikW4N2JPgIpyDI= Bytes: 1919 Lines: 17 Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Je viens de regarder le code source de GNU sed lorsqu'il fait une > édition "--in-place". Il réalise toutes les opérations dans un fichier > temporaire puis : > > ck_rename (input->out_file_name, target_name, input->out_file_name); Ah, merci, je ne savais pas, donc oui c'est équivalent. Très bonne chose que sed -i fasse cela. Par contre, moi je vais le faire en Perl dans le feed NoCeM, plutôt que de lancer sed, donc je vais utiliser rename(2). > "mv" n'est pas LA façon de bien faire... Il existe de multiples autres > façons... Oui