sed 插入和替换

sed -i '/参考行/i插入内容' *.ksh 
sed -i 's,原内容,替换后内容,g' *.ksh

原文地址:https://www.cnblogs.com/kakaisgood/p/8328905.html