Home - Resumé - Up
Name
eol - convert line endings
Synopsis
eol [−0dmu] [file ...]
Description
Eol (which stands for End Of Line) converts text to use a particular line
terminator.
The options are as follows:
- −0
- Use a NUL character (a zero byte) to terminate output lines.
This might be useful in conjunction with the −0
option of xargs(1).
- −d
- Use a CR LF pair
(carriage return followed by line feed) to terminate output
lines. (The −d stands for “DOS”,
since MS-DOS — now MS Windows —
is the most common system using this line terminator.)
- −m
- Use a CR (carriage return) character to terminate output lines.
(The −m
stands for “Macintosh”, since the Macintosh is the most common
system using this line terminator.)
- −u
- Use a LF (line feed) character to terminate output lines.
(The −u stands for “Unix”,
since various UNIX™
versions and clones are the
most common systems using this line terminator.)
Eol treats any of the following as terminating a line in its input: a
carriage-return line-feed pair, a line-feed carriage-return pair,
a carriage-return alone, a line-feed alone, or a NUL.
See Also
xargs(1), ascii(7)