[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: poblème récupération d'une partie nom de fichier



Title: Message
$ a=blabla.123
$ echo ${a##*.}
123
$ b=${a##*.}
 
voilà
-----Original Message-----
From: Olivier.GEY@ac-besancon.fr [mailto:Olivier.GEY@ac-besancon.fr]
Sent: jeudi 11 mars 2004 10:17
To: debian-user-french@lists.debian.org
Subject: poblème récupération d'une partie nom de fichier


voila messieurs dames,

j'essaie en vain de récupérer une partie du nom d'un fichier du type " blabla.123 " et de mettre les " 123 " dans une variable sachant que ce nombre change souvent donc connaissez vous une commande qui permet de couper ce nom et de coller le nombre dans une variable !!!

merci d'av !!! tcho


GEY Olivier
Informaticien
DAFCO de Besançon
Tél: 03.81.65.74.63
Fax: 03.81.65.74.64


Visit our website! http://www.nbb.be
"LEGAL DISCLAIMER: The content of this e-mail message should not be constructed as binding for the National Bank of Belgium (NBB) unless otherwise and previously stated.
Besides, the opinions expressed in this message are solely those of the author and do not necessarily represent those of the NBB, which is particularly the case if the content of the present message, or part of it, is of a private nature or does not come whithin the professional scope of the author."


Reply to: