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
Incoming search terms:
- linux convert line endings (58)
- ascii text with crlf line terminators (27)
- convert line endings linux (22)
- linux change line endings (21)
- convert line endings (15)
- linux line endings convert (13)
- unix convert line endings (10)
- convert line endings to unix (10)
- ascii text with crlf lf line terminators (6)
- convert text file line endings (5)
-
http://steve-parker.org/ Steve Parker
-
KTG
-
John
-
http://www.vangoor.eu Enrico
-
Kyle
-
courtney
-
HLFH
-
HLFH
