linux 中 利用命令向文件的末尾添加空行

 

001、

(base) [root@PC1 test]# seq 3 > a.txt
(base) [root@PC1 test]# cat a.txt      ## 测试数据
1
2
3
(base) [root@PC1 test]# echo >> a.txt   ## 末尾追加一个空行
(base) [root@PC1 test]# cat a.txt
1
2
3

(base) [root@PC1 test]# echo >> a.txt
(base) [root@PC1 test]# cat a.txt
1
2
3


(base) [root@PC1 test]#

 

 

posted @ 2022-09-22 09:52  小鲨鱼2018  阅读(284)  评论(0)    收藏  举报