windows 7 - How do I get MKS sed to output this double quote? -
windows 7 - How do I get MKS sed to output this double quote? -
the line
echo xxx | sed "s/xxx/a""b/"
outputs
ab
rather than
a"b
as expected.
what's fix?
use below command: $
echo xxx | sed s/xxx/a\"\"b/
output : a""b
please note ("(quote)should escaped, need twice that's trick here)
windows-7 cmd mks
Comments
Post a Comment