How do you use double quotes in SED?

Mỹ Duyên

New member
How do you use double quotes in SED?
Answer
Here’s a couple of examples where using double quotes makes perfectly sense: $ echo “We’re good!” | sed “s/’re/ are/” We are good! $ name=”John”;
echo “Hello, I’m <name>.” | sed “s/<name>/$name/” Hello, I’m John. This is actually related to bash, rather than just the sed command.
 

Tìm kiếm

Back
Top