Tuesday, 1 November 2011

expand variable in SED

expand variable in SED

Hi,

Please could someone advise, how can i expand a variable in SED, see my command below :

sed "s/SAN_HOME=/$TOP_HOME/g" $HOME_TOP/cfg/environment.properties.Template > $HOME_TOP/cfg/environment.properties

I get the following error :

sed: -e expression #1, char 23: unknown option to `s'

thank you

No comments:

Post a Comment