perl -pe'chomp; END { print "\n" }' file