diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
commit | 6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (patch) | |
tree | 926065cf45450116098db664e3c61dced9e1f21a /ipl/progs/catlines.icn | |
download | icon-6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1.tar.gz |
Initial upstream version 9.4.3upstream/9.4.3
Diffstat (limited to 'ipl/progs/catlines.icn')
-rw-r--r-- | ipl/progs/catlines.icn | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ipl/progs/catlines.icn b/ipl/progs/catlines.icn new file mode 100644 index 0000000..026808e --- /dev/null +++ b/ipl/progs/catlines.icn @@ -0,0 +1,31 @@ +############################################################################ +# +# File: catlines.icn +# +# Subject: Program to concatenate lines of a file +# +# Author: Ralph E. Griswold +# +# Date: January 14, 1999 +# +############################################################################ +# +# This file is in the public domain. +# +############################################################################ +# +# This program concatenates all the lines from standard input and +# writes the result to standard output. +# +############################################################################ + +procedure main() + local line + + line := "" + + while line ||:= read() + + write(line) + +end |