📜  sed 从匹配中替换 - Shell-Bash 代码示例

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

代码示例1
Just use a similar example with using ".*" regex with sed as following:
sed 's/match_pattern.*/replacement_of_match_and_rest_of_line/' file.txt