Name
delcr — removes a CR (\015) at the end of each line of input, if a CR is present.
Description
delcr reads input from stdin and writes it to stdout.
It removes a CR (\015) at the end of each line of input, if a CR is present.
It does not remove a CR at the end of a partial final line.
See also
- addcr(1)
the reverse of this filter
- fixcrio(1)
a wrapper for a command that performs CR insertion on its standard I/O
History
delcr 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.