Re: aide bash

Página Inicial

Reply to this message
Autor: anne aublanc
Data:  
Para: guilde
Assunto: Re: aide bash
Merci à tous...


 if [  -n  "`ls  /home/e-smith/files/ibays/fax_voice/html/fax/tmp/`" ] ;
then
     mv /home/e-smith/files/ibays/fax_voice/html/fax/tmp/*
 /home/e-smith/files/ibays/fax_voice/files/fax/tmp/;
fi


fonctionne très bien!

il suffisait juste d'ajouter des ""!
(heu, je ne l'ai pas trouvé toute seule... mais quand j'ai vu le post, je me
suis dit mais bien sûr!)
et en plus on me l'avait déjà dit : il vaut mieux tester en ce que j'appelle
en positif (-n) quand négatif (! -z).

anne