On Tue, 7 Oct 2003, fbelhamel wrote:bonjour je voudrais savoir comment je pourrais remplacer les homedirectory par une url avant j' ai ca/www/perso/b/e/s/t/i/a/l/bestial/index.html /www/perso/c/o/k/a/l/i/a/u/s/cokaliaus//index.htm /www/perso/t/o/t/o/toto/images.html /www/perso/g/a/l/a/b/galab/fic.htm je veut ca http://perso.com/bestial/index.html http://perso.com/cokaliaus/index.html http://perso.com/toto/images.html http://perso.com/galab/fic.htmecho /www/perso/g/a/l/a/b/galab/fic.htm | awk -F'/' '{ print "http://perso.com/"$(NF-1)"/"$NF }' http://perso.com/galab/fic.htm Tu sais faire une boucle en shell ? ---------------------------------- Informations, désabonnement, règles, obligations sur la liste Aide-Linux : http://lists.ze-linux.org/howto_ml.html