(Video materials in preparation)
distribute : Writes standard input into separate files one line
at a time.
Usage : distribute [-a] <file1> <file2> ...
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Writes the contents of standard input into the files specified
one line at a time. "-a" option is an append mode.
$ cat data
1 a
2 b
3 c
4 d
5 e
6 f
7 g
8 h
9 i
10 j
$ distribute file1 file2 file3 < data
$ cat file1
1 a
4 d
7 g
10 j
$ cat file2
2 b
5 e
8 h
$ cat file3
3 c
6 f
9 i
$ distribute -a file1 file2 file3 < data
$ cat file1
1 a
4 d
7 g
10 j
1 a
4 d
7 g
10 j