📜  sed 从匹配替换到行尾 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:21.394000             🧑  作者: 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