Preparing an MS-DOS ASCII file on the UNIX or Linux operating system
The adapter profile .jar file might contain ASCII files in MS-DOS ASCII format.
If you edit an MS-DOS ASCII file on the UNIX operating
system, you might see a ^M
character at the end of each line. These characters
indicate new lines of text in MS-DOS. The characters can interfere with running the file on UNIX or Linux® systems. You
can use tools, such as dos2unix, to remove the ^M
characters.
You can use the vi editor to remove the
^M
characters
manually. From the vi command mode, run the following command and press Enter:
:%s/^M//g
When you use this command, enter ^M or Ctrl-M by pressing ^v^M or Ctrl V Ctrl M sequentially. The ^v instructs the vi editor to use the next keystroke instead of issuing it as a command.