linux运维经验分享
2017年9月22日
shell习题
No Comments
aming
在文本文档1.txt第5行(假设文件行数大于5)后面增加如下内容:
# This is a test file.
# Test insert line into this file.
参考答案:
sed -i "5a # This is a test file.\n# Test insert line into this file." 1.txt
shell习题-给文档增加内容
2017年9月22日
shell习题
No Comments
aming
在文本文档1.txt第5行(假设文件行数大于5)后面增加如下内容:
# This is a test file.
# Test insert line into this file.
参考答案: