【发布时间】:2015-04-24 07:35:16
【问题描述】:
我正在尝试将一堆 n 行合并为一行,但不知道该怎么做。任何帮助表示赞赏。
一堆 11 个单词,然后是一个空白行,然后又是一堆 ll 单词,然后是空白……等等。
示例:
cat filename
hi
hello
how
are
you
i
am
fine
how
are
you
hi
how
is
she
doing
i
have
not
herd
from
her
..
..
想要的输出:
cat newFile
hi hello how are you i am fine how are you
hi how is she doing i have not heard from her
..
..
【问题讨论】: