📜  bash 替换字符串 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:33.551000             🧑  作者: Mango

代码示例6
#1) Open the file in vi or vim
#2) Run the replacement command in vi (or vim) as follows

# Replace all matching patterns
:s%/PatternToReplace/Replacement

# Replace one matching pattern at a time
:s/PatternToReplace/Replacement