few lines to one - how to?

hello!
a have a file with few lines:

Viva
18003
18004

how to write a script to edit this file to one line file:
Viva1800318004

Please help!

Hi,

paste -s -d\0 IN_FILE
paste -s -d "" in.file > out.file
for f in input_file
do
f >> tmp_file
mv tmp_file final_file
done 

this will do. but i m sure if u wait a lil more.. masters of sed and awk will show up wid a lot better ways. i will say go with that. :smiley:
i dont know sed and awk. if anyone can guide me where to read (sed and awk) from please let me knw.

With awk..maybe:

awk '{printf "%s", $0} END{print}' IN_FILE

GNU sed:

sed -e :a -e 'N; s/\n/ /; ta' infile
Viva 18003 18004