Ostermillerutil Java Utilities Line Ending Conversion - com.Ostermiller.util Java Utilities

Converts text files so that they can be read by text editors on various systems. Text editors such as Notepad often display squares in place of line endings they can't understand, causing text formatting to be lost.

Internationalization - included languages:
  • English
Translations gladly accepted. Please translate LineEnds.properties.
You may want to use: Attesoro - A Java Translation Editor


  • Text formats supported
    • DOS
    • Windows
    • UNIX
    • Java
    • Mac
  • Reads files in any of the supported formats, or files that are in mixed formats.
  • Can re-write in any format, but defaults to the correct format for the current system.
  • Only re-writes files which are not already in the correct format.
  • Detects binary files and does not modify those files unless forced.

To run the program use the following command line:
java -classpath utils.jar com.Ostermiller.util.LineEnds <files>

LineEnds [-dnrsfvqQ] <files>

   Adjusts the line endings in files.
   If no files are specified standard in and out will be used.

   --help                 Print this help message.
   --version              Print out the version number.
   --about                Print out license and contact info.
   -d --windows --dos     Use the Windows/DOS line ending.
   -n --unix --java       Use the UNIX/Java line ending.
   -r --mac               Use the Macintosh line ending.
   -s --system            Use the current system's line ending. (default)
   -f --force             Always modify files, even binary files.
   --noforce              Don't modify binary files. (default)
   -v --verbose           Print a message for each file modified.
   -q --quiet             Print error messages. (default)
   -Q --reallyquiet       Print nothing.


OstermillerUtil Java Utilities Copyright (c) 2001-2020 by Stephen Ostermiller and other contributors

The OstermillerUtils library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

License FAQs - Why GPL? How about the LGPL or something else?