tofrodos
« Back to VersTracker
Description:
Converts DOS <-> UNIX text files, alias tofromdos
Type: Formula  |  Latest Version: 1.7.13@0  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: text-conversion cross-platform command-line dos unix
Install: brew install tofrodos
About:
Tofrodos is a command-line utility that converts text files between DOS and UNIX line ending formats. It handles the transformation of Carriage Return + Line Feed (CRLF) to Line Feed (LF) and vice versa. The tool is particularly useful for developers and system administrators working in cross-platform environments.
Key Features:
  • Converts between DOS (CRLF) and UNIX (LF) line endings
  • Provides 'todos' and 'fromdos' aliases for convenience
  • Handles batch processing of multiple files
  • Lightweight and fast command-line operation
Use Cases:
  • Fixing scripts created on Windows for use on Linux/Unix servers
  • Preparing text files for version control systems like Git
  • Converting configuration files for cross-platform applications
Alternatives:
  • dos2unix – More widely available on Linux systems; Tofrodos offers similar functionality with different alias conventions
  • sed – Built-in stream editor that can handle line ending conversions with more complex scripting
Version History
Detected Version Rev Change Commit
Sep 12, 2024 9:22pm 1.7.13 0 VERSION_BUMP 9e4965c1