[Discuss] cocat for linux

p.willis at telus.net p.willis at telus.net
Fri Jun 9 14:14:57 PDT 2006



Hello,

Is anyone interested in a cocat utility for linux?
I'll post the source if it's of use.

I needed one for soemting I was working on...

The program works like 'cat'  except when you
give it multiple file names it concatinates successive lines from
each file onto a single line until all files are finished.
Columnar output is delimited by a single space character.

ie:

filea contains:
1
2
3

fileb contains:
A
B
C

filec contains:
!
#
$

cocat filea fileb filec

output:

1 A !
2 B #
3 C $


Peter



More information about the Discuss mailing list