#aptitude install flip
Then to convert from DOS to UNIX format:
$flip -uv textfile
Or to convert from UNIX to DOS format
$flip -mv textfile
Alternatively, you can check tofrodos and dos2unix packages, or you can open your file in Gedit and change the Line Ending option when you "Save as..." your file. The latter can be very easy if you have only one or two files. However, when you have a bunch of files, command line is just much easier. E.g., if your files have txt extension, you can convert all files by
$flip -uv *.txt
Or to convert from UNIX to DOS format
$flip -mv textfile
Alternatively, you can check tofrodos and dos2unix packages, or you can open your file in Gedit and change the Line Ending option when you "Save as..." your file. The latter can be very easy if you have only one or two files. However, when you have a bunch of files, command line is just much easier. E.g., if your files have txt extension, you can convert all files by
$flip -uv *.txt
No comments:
Post a Comment