Hi ,
i used with success the
sed command : ( in the date value the slash is protected by \ )
cat crontab-test|
sed -e "s/Modifie le : 20\/06\/08/Modifie le : 11\/22\/33/g"
but when i want to put the values in variables
j_modif_old="20/06/08"
j_modif_new="11/22/33"
cat crontab-test|
sed -e "s/Modifie le : ${j_modif_old}/Modifie le : ${j_modif_new}/g"
i have the following error :
sed: Function s/Modifie le : 20/06/08/Modifie le : 11/22/33/g cannot be parsed.
how can i do this , protecting the "/" when parsing ?
thanks in advance
Christian