append processed integer from each line to the end of each line in file