I am using solrais 10 on sun sparc.

The following command executes successfully

echo c:/test.txt | sed -e 's/\//\\\//g'

But when i executes the following command

x=`echo c:/test.txt | sed -e 's/\//\\\//g'`

I get the following error

sed: command garbled: s/\//\\//g

Is there any way to avoid this error. I am using the Bash shell.

Hey There,

Just change this

x=`echo c:/test.txt | sed -e 's/\//\\\//g'`

to this

x=`echo "c:/test.txt" | sed -e 's/\//\\\\\//g'`

assuming you want $x to equal: c:\/test.txt

Hope that helps :)

, Mike