i got some files with name start as eg_. and only each contains one single line
eg_01.txt: @china:129.00
eg_02.txt @uk:219.98
eg_03.txt @USA:341.90>
You could always pipe it to tr
tr
tr "\n" " "
That removes all newlines on stdin and replaces them with spaces
stdin
EDIT: as suggested by Bart Sas, you could also remove newlines with tr -d
tr -d
tr -d "\n"
(note: just specifying an empty string to tr for the second argument won't do)