Topics: AIX, System Admin

Control-M

When exchanging text files between Windows and AIX systems, you often run into ^M (CTRL-M) characters at the end of each line in a text file. To remove these ugly characters:

tr -d '^M' < [inputfile] > [outputfile]
To type the ^M character on the command line: press CTRL, then type v and the m.

Another way: download this zip archive: controlm.zip (1KB).

This zip archive includes 2 files: unix2dos and dos2unix, which you can run on AIX:

To convert a Windows file to Unix file:
# dos2unix [filename]




If you found this useful, here's more on the same topic(s) in our blog:


UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.

Interested in learning more?