> 1- Comment faire pour transformer le nom d'un fichier toto.tar en > toto.Annee.Mois.Jour.tar ? ( en fonction de la date) > Si le nom 'toto' est connu simplement avec: dest_name=toto.`date +"%Y.%m.%d"`.tar Sinon, tu peux avoir un truc du genre: src_name="toto.tar" name=`echo $src_name | cut -d . -f 1` ext=`echo $src_name | cut -d . -f 2` dest_name=$name.`date +"%Y.%m.%d"`.$ext NB: Ca c'etait pour du bash. En csh faut ecrire 'set variable=...' Aide: man date man cut Markus -- ----------------------------------------------------------------- Markus Schutz Senior Software Engineer AXS Technologies SA Phone: +41 21 331 4457 3, Ch. de Mornex Fax: +41 21 331 4441 1003 Lausanne mailto:[EMAIL PROTECTED] Switzerland http://www.axstech.com -----------------------------------------------------------------
begin:vcard n:Schutz;Markus tel;fax:+4121 331 4440 tel;work:+4121 331 4457 x-mozilla-html:FALSE url:www.axs-tech.com org:AXS Technologies;R&D adr:;;3, Ch. de Mornex;Lausanne;VD;1003;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Software Engineer x-mozilla-cpt:;-12768 fn:Markus Schutz end:vcard