我正在尝试将AllowOverride文件中的特定"AllowOverride None“替换为"AllowOverride All”。如果文件有多行,具有相同的模式,我想我会做一个多行模式来替换它.除非sed可以选择何时替换模式。combination of the keywords:#我把单行改为:
sudo sed-i '
lots of text
# these# be,#]
lots of text
我想添加一些文本多行匹配:如何使用sed或ex将块(多行代码)替换为新的文本块(代码)?https://stackoverflow.com/questions/11234001/replace-multiple-lines-usi