Problem scenario: When you move a Windows .txt file to a Linux server, new characters can be introduced. For example, the content of the file can have a “^M” (with no quotes) at the end of every line. Sometimes tr, sed, and awk won’t work to remove this new jibberish (extraneous characters). Moreover, sometimes the substitute command in vi will fail to do anything about these extraneous characters (^M). How do you eliminate these extra characters at the end of every line?
…
Continue reading “Moving a Windows .txt file to a Linux Server”
