(Video materials in preparation)
interlace : Merges records alternating rows
Usage : interlace <file1> <file2> ...
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Merges records from <file1> <file2> ... one record at a time in
round robin style. If the end of any file has been reached, that
file is skipped on subsequent rounds and the merge continues until
all rows in all files have been merged.
$ cat file1
a
b
c
$ cat file2
A
B
C
D
$ cat file3
1
2
3
4
5
$ interlace file1 file2 file3
a
A
1
b
B
2
c
C
3
D
4
5