📌  相关文章
📜  bash 打印一行直到匹配 - Shell-Bash 代码示例

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