(動画教材準備中)
interlace : レコードの順マージ
Usage : interlace <file1> <file2> ...
Version : Mon Feb 25 11:03:31 JST 2013
テキストファイル <file1> <file2> ... のレコードをこの順に1レコードずつマージします。各ファイルが終端に達したときは、そのファイルはスキップし、最後のファイルが終端になるまで、この動作が繰り返されま す。
$ 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