sed -e "s/\r//g" file > newfile