bash中將多行合并为一行

# cat tmp
a
b
c
d
# cat tmp | tr -s "\n" " "
a b c d
相关文章
相关标签/搜索