1BSD/man6/fix.6

.th FIX VI 8/24/77
.sh NAME
fix \- clean up data
.sh SYNOPSIS
.bd fix
[
.bd \-bcfhlnoqr
] [
file ...
]
.sh DESCRIPTION
.it Fix
is a filter which reads the argument files or the standard input
removing ``bad'' characters in the copy on the standard output.
.it Fix
optionally makes a report of the problems it finds in the input.
There are scads of options:
.s3
.lp +7 6
\fB\-b\fP	Bells are bad characters.
.s3
.lp +7 6
\fB\-c\fP	Carriage returns are bad characters.
.s3
.lp +7 6
\fB\-f\fP	Form feeds are bad characters.
.s3
.lp +7 6
\fB\-h\fP	Do the processing which would be implied if the
input were typed to the system with erase processing character
control-h.
.s3
.lp +7 6
\fB\-l\fP	Number lines in the report of bad lines.
.s3
.lp +7 6
\fB\-n\fP	Do not produced fixed output;
only produce a report of problems on the diagnostic output.
.s3
.lp +7 6
\fB\-o\fP	Print bad characters in octal in the report instead of as
the character `?'.
.s3
.lp +7 6
\fB\-q\fP	With multiple file arguments, don't print file names in the
report.
.s3
.lp +7 6
\fB\-r\fP	Carriage returns are bad characters.
.i0
.s3
Thus to clean up the file `dirty' after typing it in when you
thought your erase character was control-h.
.s3
.dt
	fix dirty >clean
.s3
To just get a report of the problems in the file dirty:
.s3
	fix \-n dirty
.s3
To send output to the printer discarding dirty characters:
.s3
	a.out | fix | lpr
.sh SEE\ ALSO
list (VI), p (VI)
.sh AUTHOR
Kurt Shoens
.sh BUGS
Null characters are turned into delete characters.
This can be construed as a bug or as a feature.