to remove the microsoft carriage return. tr -d '\015' < original.file > new.file