在特定的行后添加特定的字符串

sed -i 's/^aabbcc.*/&helloworld/g' 1.txt

原文地址:https://www.cnblogs.com/howhy/p/6186431.html