substitute the starting dollar sign in command with blank

Hi,,

Let example cmd: $$config/all
Here I want to replace or subsitute blank space and also with any other character in place of "$" sign...and also want to replace backslash (/) with forward (\)......in expect script

please could any one help on this.....thank you

Hi swethakast,
Try with:

cat inputfile
cmd: $$config/all

sed 's/ \$//;s/\//\\/' inputfile
cmd:$config\all

Regards

Thanks for replaying....

but here i want in expect script..where "sed" cannot accepted by expect