Name
addcr — inserts a CR (\015) before each LF (\012)
Description
addcr reads input from stdin and writes it to stdout.
It inserts a CR (\015) before each LF (\012), i.e., at the end of each line of input.
It does not insert a CR at the end of a partial final line.
See also
- delcr(1)
the reverse of this filter
- fixcrio(1)
a wrapper for a command that performs CR insertion on its standard I/O
History
addcr was originally part of Daniel J. Bernstein's ucspi-tcp toolset in 1999.
Author
Original code and documentation by Daniel J. Bernstein.
Documentation modernizations by Jonathan de Boyne Pollard.