\documentstyle [11pt] {article}
\pagestyle{empty}
%
\topmargin=-0.75in
\hoffset=-0.75in
\textheight=10.0in \vsize\textheight
\textwidth=6.5in \hsize\textwidth
%
\begin {document}
{\Large
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Insert source immediately following \begin{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{verbatim}
############################################################
# Illustrates use of 'nth', a script available on the 
# SGI machines for selecting columns from standard input
############################################################
% cat powers
1    1     1      1
2    4     8      16
3    9     27     81
4    16    64     256
5    25    125    625
6    36    216    1296
7    49    343    2401
8    64    512    4096
9    81    729    6561
10   100   1000   10000

% nth
usage: nth <col #> [<col #> ...] | last

% nth 1 2 < powers
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
\end{verbatim}
\newpage
\begin{verbatim}
% nth 1 3 < powers
1 1
2 8
3 27
4 64
5 125
6 216
7 343
8 512
9 729
10 1000

% nth 1 3 1 < powers
1 1 1
2 8 2
3 27 3
4 64 4
5 125 5
6 216 6
7 343 7
8 512 8
9 729 9
10 1000 10
\end{verbatim}
}
%
\end {document}
