33 lines
847 B
Groff
33 lines
847 B
Groff
.TH ASCII 1
|
|
.SH NAME
|
|
ascii \- strip all the pure ASCII lines from a file
|
|
.SH SYNOPSIS
|
|
\fBascii\fR [\fB\-n\fR]\fR [\fIfile\fR]\fR
|
|
.br
|
|
.de FL
|
|
.TP
|
|
\\fB\\$1\\fR
|
|
\\$2
|
|
..
|
|
.de EX
|
|
.TP 20
|
|
\\fB\\$1\\fR
|
|
# \\$2
|
|
..
|
|
.SH OPTIONS
|
|
.FL "\-n" "Extract the lines containing nonASCII characters"
|
|
.SH EXAMPLES
|
|
.EX "ascii file >outf" "Write all the ASCII lines on \fIoutf\fR"
|
|
.EX "ascii \-n <file >outf" "Write all the nonASCII lines on \fIoutf\fR"
|
|
.SH DESCRIPTION
|
|
.PP
|
|
Sometimes a file contains some nonASCII characters that are in the way.
|
|
This program allows the lines containing only ASCII characters to be
|
|
\fIgrepped\fR from the file.
|
|
With the \fB\-n\fR flag, the nonASCII lines are
|
|
\fIgrepped\fR.
|
|
No matter whether the flag is used or not, the program returns an exit status
|
|
of true if the file is pure ASCII, and false otherwise.
|
|
.SH "SEE ALSO"
|
|
.BR tr (1).
|