Replace special text with sed?
Posted
by
user143822
on Super User
See other posts from Super User
or by user143822
Published on 2012-07-07T15:31:30Z
Indexed on
2012/07/07
21:18 UTC
Read the original article
Hit count: 183
command-line
|sed
I'm using CMD on Windows Xp to replace special text with Sed. I'm using this command for replace special characters like $ or *
:
sed -i "s/\*/123/g;" 1.txt
But how command must i use to replace this strings with ciao!
in my text files? Is possible?
\\
\\\
""
sed.exe -i "s/{\*)(//123/
sed -i "s/\\/123/g;" 1.txt
the previous command does not work because i have \
, "
and other special strings that sed use to make regex.
© Super User or respective owner