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..

Enhanced by Zemanta
The following two tabs change content below.
Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. He is a Linux/Open source supporter who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. He works as Devops Engineer with Taggle systems, an IOT automatic water metering company, Sydney . You can contact him at surendra (@) linuxnix dot com.