Re: aide bash

Page principale

Répondre à ce message
Auteur: nt.guilde
Date:  
À: anne aublanc
CC: guilde
Sujet: Re: aide bash
>if [ ! -z `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


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

ou

[ -n "$(ls /home/e-smith/files/ibays/fax_voice/html/fax/tmp/)" ] && mv ...

-Nicolas Tripon