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.
Thanks & regards, Sushant
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
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.
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.
This could help. This is regarding quoting in bash:
http://www.grymoire.com/Unix/Quote.html