sed substitution problems

Hi falks,

I need to substitute in my ksh program, parameter (full path of directory) ,which is sent from outside program, with another parameter (another full path of directory) ,which is known and validated inside my program.
I tried to use "sed" ,but i failed.
For example:

STR1="/home/ias"
STR2="/home/oracle"

sed -e s/"${STR1}"/"${STR2}"/g > /tmp/test.lst
sed: -e expression #1, char 10: Unknown option to 's'

Any ideas?

Thanks in advance,
Nir

sed -e "s#${STR1}#${STR2}#g" file

Hey vgersh99,

Thanks a lot!!
It works fantastic!

Best regards,
Nir