这是我输入的内容和得到的输出:
$ cat helloworld.txt
Hello World!
I'm Kanladaporn Sirithatthamrong
6480952
但这就是我想要的输出:
Hello World!
I'm Kanladaporn Sirithatthamrong
6480952
我应该怎么办?请问有什么建议吗?
这是我输入的内容和得到的输出:
$ cat helloworld.txt
Hello World!
I'm Kanladaporn Sirithatthamrong
6480952
但这就是我想要的输出:
Hello World!
I'm Kanladaporn Sirithatthamrong
6480952
我应该怎么办?请问有什么建议吗?
使用
pr
:来自
man pr
:您可以使用
sed
:要仅在没有空行时添加换行符,请使用:
参考:SED 的便捷单行
将 awk 的输出记录分隔符更改为两个换行符,而不是默认的一个: