Bonjour,

grosse fatigue ce matin !

j'ai un script ou j'ai ça :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
if [[ "$1" == "" ]] ; then
        madate=`date -d yesterday +%F`
else
        madate=`date -d $(echo "'${1}'")  +%F`
fi
je voudrais passer comme paramètre $1 ===> "'1 days ago'"

Ça marche pas !

Je cale.... !
Merci pour votre aide.