I try to replace variable in a file but the variable is not replaced after the execution of the script. i just see that my file was modified with the date when i run the script.
Here my script:
#!/bin/bash
###################################################################
#
# NOM : CONFIG_PROFIL
#
###################################################################
##--------variable---------->>
DEST_DIR="profil"
chemin_env="/ords/test/profilprd"
sed -i 's/^$env/${chemin_env}/' $DEST_DIR/index_prive.htm
echo -*-*- Traitement terminé -*-*
Here my file with the variable that i want to replace :
<frame name="mainFrame" src="$env/PG_LOGIN.pLogin?msg=" marginwidth="5" >
What i'm doing wrong ?