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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -