$ perl -pe 'chomp' file line one line infoline two infoline threemore lines etc