With tr command
1) tr "\n" " " < filename
2)cat filename | tr -d "\n"
3)cat filename | tr "\n" " "
With paste command
paste -s -d " " filename
if you people have more comment on this..
Thursday, December 9, 2010
how to join lines in a file in Linux?
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment