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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -