Escape character

Hi ,
I want to change space to ' in my script.
I tried doing this,

sed 's/ /\'/g' filename

but i could not get it.
can some one help me please.
Thanks,
Deepak

try the double quote

sed -e "s/ /\'/g" file

sed "s/ /'/g" filename works for me.

Thanks Andryk.
It worked :slight_smile:

Thanks Vish.