shell 编辑文件——添加

在文档中添加一行:nginx 在指定行前面添加web sed -i '/2/i\here' test.txt 在指定行后面添加app sed -i '/2/a\after the line' test.txt 在最后面添加svg sed -i '$a\last line' test.txt
相关文章
相关标签/搜索