I think we have to make a "community-wiki" Q-A, simple like
this about removing '\r' with dos2unix (or tr). With a few examples into the question. Currently we have a lot of similar Q-As but not a general one, where we can finally target all paste/awk/sed etc Qs where the root cause is the windows line endings.