blob: 464109de67a98da18f7ee24ef618b95d70df2d5f (
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
37
38
39
|
############################################################################
#
# File: lineseq.icn
#
# Subject: Program to write a sequence of values on a line
#
# Author: Ralph E. Griswold
#
# Date: February 18, 1995
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program reads values on separate lines and strings them together
# on a single line. The default separator is a blank; other separating
# strings can be specified by the -s option
#
############################################################################
#
# Links: options
#
############################################################################
link options
procedure main(args)
local opts, sep
opts := options(args, "s:")
sep := \opts["s"] | " "
every writes(!&input, sep)
write()
end
|