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