答案1
带双引号
echo "hello (world)" | sed "s/)/ with an 'example')/"
给
hello (world with an 'example')
带有复杂的引号:
echo "hello (world)" | sed "s/)/ with an hello ‘example’ )/"
hello (world with an hello ‘example’ )
带双引号
echo "hello (world)" | sed "s/)/ with an 'example')/"
给
hello (world with an 'example')
带有复杂的引号:
echo "hello (world)" | sed "s/)/ with an hello ‘example’ )/"
hello (world with an hello ‘example’ )