blob: 2a546cd6c6ea6ce54037902084f89b2260e587d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
############################################################################
#
# File: spray.icn
#
# Subject: Program to manipulate bibliographical records
#
# Author: Ralph E. Griswold
#
# Date: March 25, 1999
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# AD HOC
#
############################################################################
procedure main()
while line := read() do {
rec := []
line ? {
while field := tab(upto('\t')) do {
put(rec, field)
move(1)
}
if not pos(0) then put(rec, tab(0))
}
every write(!rec)
write()
}
end
|