Combine names in name files into single lines and remove the '.names' extensions.