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.

-- 
----------------------------------------
Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net
----------------------------------------

Attachment: pgpOYMfXXRwXI.pgp
Description: PGP signature

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to