On Wednesday 23 October 2002 10:56, Fabian Vilers wrote: > (sorry pour le mail bidon précédent) > > hello, > > voici un script: > > du -cha /var/db/pkg | grep ebuild | cut -c 18- > > voici un bout de son résultat: > > app-crypt/gnupg-1.0.7/gnupg-1.0.7.ebuild > app-crypt/mhash-0.8.16/mhash-0.8.16.ebuild > app-crypt/gpa-0.4.3/gpa-0.4.3.ebuild
Tu peux y ajouter un 'sed' (stream editor) où tu dis de remplacer '.ebuild' par rien ex. ls | sed 's/gif/GIFFLE/' convertira tous les *.gif en *.GIFFLE du -cha /var/db/pkg | grep ebuild | cut -c 18- | sed 's/.ebuild//' > j'aimerais supprimer le '.ebulid' seulement cut ne me propose pas de coupé > les x derniers caractères de la ligne. je connais pas trop textutils, qqn > peut il m'aider? > > merci :-) > > > 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. -- 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