ASCII text files can contain different forms of newlines, depending on
which operating system is being used. Converting between these formats is
often necessary if you use several operating systems. The flip program will
convert the newlines to any format given in the table below:
| Operating System |
|
Newline Character(s) |
|
| Microsoft Windows / MS-DOS |
|
0Dh 0Ah
|
| Apple Macintosh OS 9 and earlier |
|
0Dh |
| Unix (e.g., Linux), also Apple OS X and higher |
|
0Ah |
The flip command will convert between each of
these types of newline formats. Here is the usage
statement for the program:
Usage: flip [-t|-u|-d|-m] filename[s]
Converts ASCII files between Unix, MS-DOS/Windows, or Macintosh newline formats
Options:
-u = convert file(s) to Unix newline format (newline)
-d = convert file(s) to MS-DOS/Windows newline format (linefeed + newline)
-m = convert file(s) to Macintosh newline format (linefeed)
-t = display current file type, no file modifications
Craig's useful command-line utilities