flip - do newline conversions between POSIX text files and MS-DOS
flip -h
flip {-a|-A|-m|-M|-u} [-bnpvtsz ] [file ...]
The flip(1) utility is a file interchange program that converts text-file formats between POSIX and other formats (MS-DOS and Apple Macintosh). The flip(1) utility converts lines ending with carriage-return (CR) and linefeed (LF) (MS-DOS) or just carriage-return (Apple) to lines ending with just linefeed, or vice versa.
If no file is specified, or if the file is
specified as -
, flip(1) reads the standard
input. When flip(1) reads from standard input, it writes to
standard output. If you mix files and standard input in the list of
operands, files are converted in place and standard input is
converted and then written to standard output.
$ flip -u *.* (under MS-DOS)
$ flip -u * * (under POSIX)
The resulting files will be in the correct format, regardless of
whether they were originally in MS-DOS or in POSIX format. This
also works in the opposite direction.The flip(1) utility is normally invoked as:
flip -umhvtb file ...
One of the following is required: -A, -a, -u, -m, or -h. Switches can be given separately or combined together after a dash. For example, the three command lines given below are equivalent:
flip -uvt *.c
flip -u -v -t *.c
flip -u -vt *.c
The meanings of the switches are as follows.
On systems that allow a program to know its own name, flip(1) can be renamed (or linked) to a file called toix(1) for conversion to POSIX format, or to a file called toms(1) for conversion to MS-DOS format. When invoked with the name toix(1) or toms(1), flip(1) will act as though it were invoked with the -u or -m option, respectively.
Both this documentation and flip(1) are Copyright 1989 Rahul Dhesi, all rights reserved. Permission is granted to copy, use, and distribute for any commercial or noncommercial purpose in accordance with the requirements of version 1.0 of the GNU General Public license
Note: This software has not been endorsed by the Free Software Foundation, the creator of the GNU license, and I am not affiliated with that organization.
This version has been modified for Interix.
Rahul Dhesi