1
我有以下文件:
test
one
My
two
Hi
three
我需要一种方法来使用猫和sed给予以下输出:
testone
Mytwo
Hithree
我怎样才能在一个命令中实现这一点?
我有以下文件:
test
one
My
two
Hi
three
我需要一种方法来使用猫和sed给予以下输出:
testone
Mytwo
Hithree
我怎样才能在一个命令中实现这一点?
其中一个文件 “foo.txt” 中包含的文字:
cat foo.txt | sed -e 'N;s/\n//'
没用使用sed的猫 –
的 'N; S/\ n //' foo.txt的 – russcollier
这应该读'的sed -e' !$ N; S/\ n //''? – potong