我正在尝试用sed替换字符串。不幸的是,字符串包含单引号和"::“符号。因此,我在使用sed时遇到了一些问题。我需要将configuration::set('feature', '0')转换为configuration::set('feature', '1')。我试过的是:
sed 's%configuration::set('feature&
我希望将以下示例中sed命令中的双引号替换为单引号。set new_string to do shell script "echo " & quoted form of list_string & " | sed -e 's/$/\"/' -e 's/^/\"/' -e 's/^/+/'"
但是,如果