2011-11-16 140 views

回答

2

其中一个文件 “foo.txt” 中包含的文字:

cat foo.txt | sed -e 'N;s/\n//' 
+3

没用使用sed的猫 –

+0

的 'N; S/\ n //' foo.txt的 – russcollier

+0

这应该读'的sed -e' !$ N; S/\ n //''? – potong