74 lines
1.3 KiB
HTML
74 lines
1.3 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>ascii(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>ascii(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
ascii - strip all the pure ASCII lines from a file
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>ascii</STRONG> [<STRONG>-n</STRONG>] [<EM>file</EM>]
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-n</STRONG> Extract the lines containing nonASCII characters
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>ascii</STRONG> <STRONG>file</STRONG> <STRONG>>outf</STRONG> # Write all the ASCII lines on <EM>outf</EM>
|
|
|
|
<STRONG>ascii</STRONG> <STRONG>-n</STRONG> <STRONG><file</STRONG> <STRONG>>outf</STRONG>
|
|
# Write all the nonASCII lines on <EM>outf</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
Sometimes a file contains some nonASCII characters that are in the way.
|
|
This program allows the lines containing only ASCII characters to be
|
|
<EM>grepped</EM> from the file. With the <STRONG>-n</STRONG> flag, the nonASCII lines are <EM>grepped</EM>.
|
|
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.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/tr.1.html">tr(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|