On Wednesday 23 August 2006 03:35, Sushant Gulati wrote:
Hello everyone.
Can anyone give me the sed command for replacing a ? with a blank space in a file?
i was trying out with a command resembling this:
sed -e s/?/a/g test
to replace all the occurences of ? with an a. But please advise me on how to use ablank space as a replacement text in the command.
Use a space and single quote the regex.
sed -e 's/?/ /g' test
I think even
sed -e s/?/' '/g test
should work.