| Deutsch English Français Italiano |
|
<t8qk6e$dli$1@shakotay.alphanet.ch> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!newsreader4.netcologne.de!news.netcologne.de!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: Marc SCHAEFER <schaefer@alphanet.ch>
Newsgroups: fr.comp.lang.perl
Subject: Re: regrouper des fichiers plats puis =?ISO-8859-1?Q?=E9clater?= un
fichier
Date: Mon, 20 Jun 2022 20:09:50 -0000 (UTC)
Organization: Posted through news.alphanet.ch
Message-ID: <t8qk6e$dli$1@shakotay.alphanet.ch>
References: <PZGdncxXCNZaxzX_nZ2dnUU7_83NnZ2d@giganews.com> <aoWdnTXijKONTy3_nZ2dnUU7_83NnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Jun 2022 20:09:50 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-account="schaefer";
logging-data="14002"; mail-complaints-to="usenet@alphanet.ch"; posting-host="634ce6c9682d817d72f6177875e2bb4f.nnrp.alphanet.ch"
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-20-amd64 (x86_64))
Cancel-Lock: sha256:+Oq9PeAsLhkCZkGib+MZ7W6PoesyKzZjyNpfWo8YXyA= sha256:GcEgBSKLpyzC1oSZA7PsXc9yxo9pgnkZapCGhxOkJhY=
Bytes: 1709
Lines: 15
jajah <nospam_elmehdichouhdi@gmail.com.invalid> wrote:
> mais j'ai un entête que j'aimerai garder uniquement depuis le premier fichier
> mais le supprimer sur les autres. une solutions svp?
# supprimer la première ligne
tail +2 fichier
donc, quelque chose comme
(cat fichier1 # celui dont on veut maintenir l'entête
tail +2 fichier2 # celui non) > fichier
> Pour la partie 2; auriez-vous une solution svp?
Pour cela il faudra un peu de code: un tableau associatif nom => handle
de fichier notamment.