处理文本时,我需要每两行删除换行符。
示例文本:
this is line one
and this is line two
the third and the
fourth must be pasted too
所需的输出:
this is line one and this is line two
the third and the fourth must be pasted too
我尝试了一个while
循环,但是一会儿循环是不好的做法。是否可以使用tr
或其他任何命令来执行此操作?