| EOL v1.31 - convert between NL and CR+NL |
| Documentation revised 21 Oct 00 - Copyright (c) 1996-2000 by Rune Berg. TextTools Freeware. |
Contents:
| Usage | Top || Next |
eol [log logfile] [option] infile to outfile
See Understanding The Usage Section for details.
| Description | Top || Previous || Next |
eol copies infile to outfile, replacing every NL (Newline) by CR+NL (Carriage-Return followed by Newline).
NL is end-of-line in Unix text files. CR+NL are end-of-line in MS-DOS, Windows, and OS/2 text files.
eol is smart enough not to change CR+NL to CR+NL+NL (i.e. eol detects when the input already has DOS style end-of-lines).
If you don't specify logfile, eol writes error messages to standard error.
| Options | Top || Previous || Next |
eol recognizes the following command line options:
| Option | Function |
|---|---|
| -u2d | Replace every CR+NL by NL. (No, eol does not remove every CR blindly - only when followed by a NL.) |
| -d2u | Replace every NL by CR+NL (default). |
| -v | Print version banner and usage info to standard error (or logfile, if given), then exit. |
| Return Codes | Top || Previous || Next |
eol returns with one of the following codes ("error levels"):
| Code | Meaning |
|---|---|
| 0 | Success |
| 102 | Incorrect/missing command line arguments |
| 104 | Error opening file |
| 105 | I/O Error |
| 107 | File name clash |
For more details, see TextTools General Features.
| Version History | Top || Previous |
These are the released versions of eol:
| Version | Date | Changes |
|---|---|---|
| 1.02 | 25-Feb-96 | n/a |
| 1.10 | 26-Sep-96 |
|
| 1.20 | 13-Jul-97 |
|
| 1.30 | 2-Jan-99 |
|
| 1.31 | 21-Oct-00 |
|
| End of document |