FIX(VI) − PWB/UNIX 8/24/77
NAME
fix − clean up data
SYNOPSIS
fix [ −bcfhlnoqr ] [ file ... ]
DESCRIPTION
Fix is a filter which reads the argument files or the standard input removing “bad” characters in the copy on the standard output. Fix optionally makes a report of the problems it finds in the input. There are scads of options:
−bBells are bad characters.
−cCarriage returns are bad characters.
−fForm feeds are bad characters.
−hDo the processing which would be implied if the input were typed to the system with erase processing character control-h.
−lNumber lines in the report of bad lines.
−nDo not produced fixed output; only produce a report of problems on the diagnostic output.
−oPrint bad characters in octal in the report instead of as the character ‘?’.
−qWith multiple file arguments, don’t print file names in the report.
−rCarriage returns are bad characters.
Thus to clean up the file ‘dirty’ after typing it in when you thought your erase character was control-h. fix dirty >clean To just get a report of the problems in the file dirty: fix −n dirty To send output to the printer discarding dirty characters: a.out | fix | lpr
SEE ALSO
AUTHOR
Kurt Shoens
BUGS
Null characters are turned into delete characters. This can be construed as a bug or as a feature.