How do you replace a double quote in Unix?

Đạt Michio

New member
How do you replace a double quote in Unix?
Answer
Just use ” for the outer quotes in your sed and you can then use ‘ in the replacement. You don’t want “+ unless you might have more than one consecutive ” and you want to replace all of them. If you do, use
sed -r “s/\”+/\’/g”.
 

Tìm kiếm

Back
Top