home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
digcol.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
920b
|
37 lines
############################################################################
#
# File: digcol.icn
#
# Subject: Program to produce nth column of digit data
#
# Author: Ralph E. Griswold
#
# Date: November 25, 1996
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program filters input to produce the nth column of digit date.
#
############################################################################
procedure main(args)
local n, line, s
n := (0 < integer(args[1])) | stop("*** invalid specification")
while line := read() do
line ? {
every 1 to n do {
tab(upto(&digits)) | stop("*** column ", n, " does not exist")
s := tab(many(&digits))
}
write(s)
}
end