com.Ostermiller.util.LineEnds.bte Maven / Gradle / Ivy
Go to download
Open source (GPL) Java utilities maintained by Stephen Ostermiller with help from many contributors.
The newest version!
<%bte.doc super="item.bte" %>
<%bte.tpl name=pageTitle%>Line Ending Conversion<%/bte.tpl%>
<%bte.tpl name=description%>Line separator adjuster that can convert text files to DOS, Windows, Unix, Java, or Macintosh format.<%/bte.tpl%>
<%bte.tpl name=keywords%>modify line endings, line ends library, end of line modifications, java library for line ends<%/bte.tpl%>
<%bte.tpl name=topcontent%>
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.
<%/bte.tpl%>
<%bte.tpl name=content%>
Internationalization - included languages:
- English
Translations gladly accepted. Please translate
LineEnds.properties.
You may want to use:
Attesoro - A Java Translation Editor
Features
- 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.
<%/bte.tpl%>
<%bte.tpl name=linkLineEnds%>Line Ends
<%/bte.tpl%>
<%/bte.doc%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy