| 1 | .th FIX VI 8/24/77 |
| 2 | .sh NAME |
| 3 | fix \- clean up data |
| 4 | .sh SYNOPSIS |
| 5 | .bd fix |
| 6 | [ |
| 7 | .bd \-bcfhlnoqr |
| 8 | ] [ |
| 9 | file ... |
| 10 | ] |
| 11 | .sh DESCRIPTION |
| 12 | .it Fix |
| 13 | is a filter which reads the argument files or the standard input |
| 14 | removing ``bad'' characters in the copy on the standard output. |
| 15 | .it Fix |
| 16 | optionally makes a report of the problems it finds in the input. |
| 17 | There 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 |
| 30 | input were typed to the system with erase processing character |
| 31 | control-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; |
| 38 | only 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 |
| 42 | the character `?'. |
| 43 | .s3 |
| 44 | .lp +7 6 |
| 45 | \fB\-q\fP With multiple file arguments, don't print file names in the |
| 46 | report. |
| 47 | .s3 |
| 48 | .lp +7 6 |
| 49 | \fB\-r\fP Carriage returns are bad characters. |
| 50 | .i0 |
| 51 | .s3 |
| 52 | Thus to clean up the file `dirty' after typing it in when you |
| 53 | thought your erase character was control-h. |
| 54 | .s3 |
| 55 | .dt |
| 56 | fix dirty >clean |
| 57 | .s3 |
| 58 | To just get a report of the problems in the file dirty: |
| 59 | .s3 |
| 60 | fix \-n dirty |
| 61 | .s3 |
| 62 | To send output to the printer discarding dirty characters: |
| 63 | .s3 |
| 64 | a.out | fix | lpr |
| 65 | .sh SEE\ ALSO |
| 66 | list (VI), p (VI) |
| 67 | .sh AUTHOR |
| 68 | Kurt Shoens |
| 69 | .sh BUGS |
| 70 | Null characters are turned into delete characters. |
| 71 | This can be construed as a bug or as a feature. |