exact!! merci alain!!
> -----Original Message-----
> From: Alain EMPAIN [mailto:[EMAIL PROTECTED]]
> Sent: mercredi 23 octobre 2002 12:04
> To: [EMAIL PROTECTED]
> Subject: Re: [linux] RE: cut
>
>
> On Wednesday 23 October 2002 11:39, Fabian Vilers wrote:
> > ok, coool, encore un truc bizzare :-)
> >
> > si je fait: `du -cha /var/db/pkg | grep ebuild`
> >
> > 4.0K
> /var/db/pkg/gnome-extra/bug-buddy-2.2.0/bug-buddy-2.2.0.ebuild
> > 4.0K
> >
> /var/db/pkg/x11-terms/gnome-terminal-2.0.1/gnome-terminal-2.0.1.ebuild
> > 4.0K /var/db/pkg/x11-wm/metacity-2.4.1/metacity-2.4.1.ebuild
> >
> > je vois que le chemin commence systématiquement à la meme
> colonne (bien
> > aligné)
> >
> > par contre si je fait un `du -cha /var/db/pkg | grep ebuild
> | cut -c 18-`
> > (pour avoir uniquement ce qui se trouve apres /var/db/pkg),
> je me rend
> > compte que la premire lettre du répertoire est *parfois*
> perdue... bizzare
>
> Ton alignement est sans doute basé sur des tabs et non sur
> une série d'espaces
> or ton cut est lui basé sur un nombre de caractères.
>
> 12k<TAB>/var/db...
> 13.5k<TAB>/var/db...
>
> ne se coupe pas de la même façon que
> 12k^^^^^^/var/db
> 13.5k^^^^/var/db
>
> un moyen parmi d'autres serait d'aller directement après le
> TAB en utilisant
> l'autre mode de cut
>
> du -cha /var/db/pkg | grep ebuild | cut -f 2
> (délimiteur par défaut = TAB)
>
> --
> Bonne journée -- Have a nice day
>
> Alain
> ------------------------------------------------------------
> Dr Alain Empain <[EMAIL PROTECTED]>
> Bioinformatics, Molecular Genetic,
> Fac. Med. Vet., University of Liège, Belgium
> Bd de Colonster, B43 B-4000 Liège (Sart-Tilman)
> WORK: +32 4 366 3821 FAX: +32 4 366 4122
> HOME: rue des Martyrs,7 B- 4550 Nandrin
> +32 85 51 23 41 GSM: +32 497 70 17 64
>
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/linux@lists.unixtech.be
> IRC: efnet.skynet.be:6667 - #unixtech
>
This electronic transmission and any attached document is intended exclusively for the person or entity to whom it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you receive this message in error, please contact the sender and delete the material from any and all computers. SPEOS does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays.