Flip – Convert text file line endings between Unix and DOS formats
Posted by Admin on March 2nd, 2009
Install flip in debian
#apt-get install flip
This will complete the installation.
Flip Syntax
flip -h
flip -umvtsbz file
Available option
-u convert to **IX format (CR LF => LF, lone CR or LF unchanged, trailing control Z removed, embedded control Z unchanged)
-m convert to MS-DOS format (lone LF => CR LF, lone CR unchanged)
-h give a help message
-v be verbose, print filenames as they are processed
-t touch files (don’t preserve timestamps)
-s strip high bit
-b convert binary files too (else binary files are left unchanged)
-z truncate file at first control Z encountered
Flip Examples
file.txt is a dos file with ^Ms at the end of each line.
file file.txt
file.txt: ASCII text, with CRLF, LF line terminators
1)flip -u file.txt
file file.txt
file.txt: ASCII text
Again converting to dos format
2) flip -m file.txt
file file.txt
file.txt: ASCII text, with CRLF line terminators
This command is also called alternative to dos2unix,unix2dos commands

March 3rd, 2009 at 2:32 am
But what’s wrong with dos2unix and unix2dos?
March 3rd, 2009 at 9:07 am
There’s even more powerful tool named konwert.
I do agree with Steve, what’s wrong with the most standard and popular tools that can be found in most of UNIX and Linux systems?
March 3rd, 2009 at 4:19 pm
It is a lot simpler to use
dos2unix and
unix2dos programs
April 8th, 2009 at 9:55 am
What about tofrodos? I think it is much easier to use the commands ‘todos’ and ‘fromdos’.
Enrico