sed '/export/i xxx' file
在指定(export)行前面后行
sed '/export/a xxx' file
sed -i '/otherstop/i\ffdsafdf' text.html这样就告仿谨咐可以了。
首先确保 text.html 为unix格式袜晌纤,如无法确认,请先执行下面这条语句:
dos2unix text.html欢迎分享,转载请注明来源:内存溢出
sed '/export/i xxx' file
在指定(export)行前面后行
sed '/export/a xxx' file
sed -i '/otherstop/i\ffdsafdf' text.html这样就告仿谨咐可以了。
首先确保 text.html 为unix格式袜晌纤,如无法确认,请先执行下面这条语句:
dos2unix text.html欢迎分享,转载请注明来源:内存溢出
评论列表(0条)