perl -ne'BEGIN{$/=\65536} $a+=tr/\n//; END{print"$a\n"}' file