BSD 1 development
[unix-history] / man6 / fix.6
CommitLineData
bf436de5
KS
1.th FIX VI 8/24/77
2.sh NAME
3fix \- clean up data
4.sh SYNOPSIS
5.bd fix
6[
7.bd \-bcfhlnoqr
8] [
9file ...
10]
11.sh DESCRIPTION
12.it Fix
13is a filter which reads the argument files or the standard input
14removing ``bad'' characters in the copy on the standard output.
15.it Fix
16optionally makes a report of the problems it finds in the input.
17There are scads of options:
18.s3
19.lp +7 6
20\fB\-b\fP Bells are bad characters.
21.s3
22.lp +7 6
23\fB\-c\fP Carriage returns are bad characters.
24.s3
25.lp +7 6
26\fB\-f\fP Form feeds are bad characters.
27.s3
28.lp +7 6
29\fB\-h\fP Do the processing which would be implied if the
30input were typed to the system with erase processing character
31control-h.
32.s3
33.lp +7 6
34\fB\-l\fP Number lines in the report of bad lines.
35.s3
36.lp +7 6
37\fB\-n\fP Do not produced fixed output;
38only produce a report of problems on the diagnostic output.
39.s3
40.lp +7 6
41\fB\-o\fP Print bad characters in octal in the report instead of as
42the character `?'.
43.s3
44.lp +7 6
45\fB\-q\fP With multiple file arguments, don't print file names in the
46report.
47.s3
48.lp +7 6
49\fB\-r\fP Carriage returns are bad characters.
50.i0
51.s3
52Thus to clean up the file `dirty' after typing it in when you
53thought your erase character was control-h.
54.s3
55.dt
56 fix dirty >clean
57.s3
58To just get a report of the problems in the file dirty:
59.s3
60 fix \-n dirty
61.s3
62To send output to the printer discarding dirty characters:
63.s3
64 a.out | fix | lpr
65.sh SEE\ ALSO
66list (VI), p (VI)
67.sh AUTHOR
68Kurt Shoens
69.sh BUGS
70Null characters are turned into delete characters.
71This can be construed as a bug or as a feature.