题目:
在文本文档1.txt第5行后面增加如下内容:
# This is a test file.
# Test insert line into this file.
演示:
sed -i -e "5a\# This is a test file.\n# Thest insert line into this file." /root/2.txt
# This is a test file.
# Test insert line into this file.
演示:
sed -i -e "5a\# This is a test file.\n# Thest insert line into this file." /root/2.txt
转载于:https://my.oschina.net/AnnaWu/blog/1540649