把多行文本合并成一行


Try this:


Code:
sed -e '/^$/d' file| tr '\n' ' '

or


Code:
awk '{printf("%s",$0)}'

猜你喜欢

转载自hexlee.iteye.com/blog/1741170