Tofrodos
Converts text files between MSDOS/Windows and Unix formats
What is Tofrodos?
Tofrodos is a text file conversion utility that converts ASCII files between the MSDOS (or Windows) format, which traditionally have CR/LF (carriage return/line feed) pairs as their new line delimiters, and the Unix format, which usually have LFs (line feeds) to terminate each line.
It is a useful utility to have around when you have to convert files between MSDOS (or Windows) and Unix/Linux/BSD (and her clones and variants). It comes standard with a number of systems and is often found on the system as "todos", "fromdos", "dos2unix" and "unix2dos".
Licence
Tofrodos is licensed under the GNU General Public License version 2. The source code is provided with the Tofrodos package.
Downloading Tofrodos
Tofrodos comes in source code form. Precompiled binaries (executables) are only provided for Windows (Win32 console mode - to be run in a console or command prompt window). If you are using Linux, Mac OS X, FreeBSD or any other system, you will need to compile the source code yourself. Makefiles for Linux/Mac OS X/FreeBSD (same makefile) and numerous compilers under Windows/MSDOS are provided.
Note: both archives listed here are identical - both contain the same complete source code and the Windows executables (binaries).
- Tofrodos (zip format) (103 Kb) - download this version if you're using Windows. Contains the full source code and documentation formatted for Windows (CR/LF line endings) as well as the Windows console executables. (Same as the gzipped tar version below.)
- Tofrodos (gzipped tar format) (88 Kb) - download this version if you're currently on Linux (or other Unix-type systems). Contains the full source code and documentation formatted for Unix/Linux/BSD (with LF line endings) as well as the Windows console executables. (Same as the Zip version above.)
What's New in Tofrodos
- Version 1.7.8 (7 April 2008)
-
- [Mac OS X] Fixed an error that only shows up when compiling in Mac OS X. The config.h in the distribution package was corrupted in the section enclosed by the APPLE macros. I'm very sorry.
- Version 1.7.7 (1 April 2008)
-
- [Mac OS X] Added support for compiling tofrodos under Mac OS X.
- [FreeBSD] Added support for compiling tofrodos under FreeBSD.
- [OpenBSD] Added support for compiling tofrodos under OpenBSD (not tested).
- [All systems] Fixed typos in documentation (Unix man page and HTML version). Thanks to Florian Ernst, the maintainer of the Debian package that includes tofrodos.
If you are not using Mac OS X, FreeBSD or OpenBSD, it is not necessary to download this version (unless you want the fixed documentation). Other than documentation fixes, there are no changes that affect the other supported operating systems.
- Version 1.7.6 (15 March 2005)
-
- [All systems] New option: -l allows you to send the error messages to a log file. It's particularly convenient for systems with less powerful command line shells that do not allow you to easily redirect stderr.
- [All systems] Fixed: all error and verbose messages are now sent to stderr or the error log file (if -l is given).
- [Windows] Older versions of compilers like Borland 4.X and 5.0, Watcom 10.X and Visual C++ 6.0 no longer have makefiles. Use the latest versions; all these compilers are now available free of charge from their vendors (see the Free C/C++ Compilers page) so using the latest version to compile tofrodos should not be a great hardship.
- [All systems] Other minor fixes.
If you are a maintainer of one of the Linux distributions that uses tofrodos, please update your version of tofrodos to the current version. If you're an ordinary user, you can of course also update your own installation by simply downloading the package and installing it. Instructions can be found in the readme.txt file.
- Version 1.7 (26 November 2003)
-
- [Linux/Unix] Bug fix: now handles symbolic link arguments correctly. This bug only affects Unix-type sytems (like Linux, FreeBSD, OpenBSD, etc).
- [Linux] tofrodos now uses mkstemp() to create the temporary file to avoid a race between file name creation and opening which may occur when using mktemp(). If you use a non-Linux system, and have mkstemp(), you can take advantage of this by defining HAVE_MKSTEMP in config.h (defined by default for Linux only).
- [Linux/Unix] "make install" now installs to /usr/bin by default (you can still change this easily) since Linux distributions using tofrodos appear to use this value. (Makes it easier for the maintainers of those distributions.)
- [All systems] Made some error messages a bit more informative.
- [All systems] Verbose mode is slightly more informative.
- [Windows] Added support for compiling with the MinGW (GNU) C Compiler on Win32 systems.
- [All systems] Added an HTML version of the manual page. Useful for systems that don't have a built-in facility to read a "man page" (like MSDOS and Windows).
- Version 1.6 (1 July 2002)
-
- Added support for the LCC-Win32 Compiler. If you already have version 1.5, and are using the provided Windows binaries, you needn't bother upgrading to this version.
- Version 1.5 (19 June 2002)
-
- Added support for the Digital Mars C++ Compiler for Windows systems.
- Made minor fixes to documentation.
- Version 1.4 (16 March 1999)
-
- Fixed bug where Tofrodos would crash when invoked with -b on a file in a directory that was not the current directory.
- Version 1.3 (8 October 1997)
-
- Added new option (-p) to preserve file ownership and time.
- Added support for Win32 compilation and some compilers under DOS and Windows.
- Version 1.1 (5 April 1997)
-
- Fixed bug in creation of temporary and backup filenames on Linux.
- Version 1.0 (22 June 1996)
-
- Initial version.
Reporting a Bug
If you find a bug or feedback, please let me know. Be sure to specify that you're referring to Tofrodos since the contact form is a general contact form for my entire site.
Related Pages
- Tips on Getting Your Own Domain Name
- The Beginner's A-Z Guide to Starting/Creating Your Own Website
- Which Web Host Do You Recommend? (FAQ)
- Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities
- Free Antivirus Software and Free Online Virus Scans
- How to Install and Configure PHP 5 to Run with Apache on Windows
- How to Install and Configure Apache 2 on Windows
Can't Find What You're Looking For?
Newest Pages
- How the Meta Description Tag May Harm Your Website
- Free PHP CAPTCHA Scripts
- How to Insert Google AdSense Advertisements into Your Blog on Blogger
- How to Add the Copyright Symbol to Your Web Page
- Free PDF Readers / Viewers
- How to Create and Use Cookies in PHP
- How to Design a Two Column Layout for Your Website Using CSS
- How to Slipstream Windows XP Service Pack 3 to Create an Integrated XP Setup Disk with SP 3
- Free 3D Software Box Image Makers
- Dreamweaver Tutorial: How to Create a Website with Dreamweaver CS3
Popular Pages
- How to Create/Start Your Own Website: The Beginner's A-Z Guide
- How to Register Your Own Domain Name - how to get your own domain name
- How to Create a Bootable Windows XP Setup CD/DVD on a Preinstalled Windows System
- Free Partitioning Software - Copy, Create, Move, Resize, Convert, Undelete Partitions
- Free Data Recovery, File and Partition Recovery, Undelete and Unformat Software
- How to Create an Emergency Windows Rescue CD
- Free Spyware / Malware Detection, Removal and Prevention Software
- Free DVD Authoring and Creation Software
- Free CD and DVD Burners and Copying Software
- Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities
How to Link to This Page
It will appear on your page as:
Tofrodos - Convert text files to/from MSDOS/Windows/Unix (freeware)
