Hi all,
I am using
sed for converting a string of type
/abc/def/gh by
\/abc\/def\/gh
[trainee@LINUX ~]$ edu="/home/abc/dec"
When I echo that variable and pass it to
sed ,it works fine...
[trainee@LINUX ~]$ echo $edu|sed 's/\//\\\//g'
\/home\/abc\/dec
But When I try to store in a variable , it shows the following error
[trainee@LINUX ~]$ ued=`echo $edu|sed 's/\//\\\//g'`
sed: -e expression #1, char 9: unknown option to `s'
HELP BLEAZ