uspTukubaiコマンドに関する様々な資料がここにあります。

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

Alphabetical list

(Video materials in preparation)

distribute(USP)

Name

distribute : Writes standard input into separate files one line

             at a time.

Synopsis

Usage   : distribute [-a] <file1> <file2> ...

Version : Tue Jan  9 09:02:34 JST 2024

Edition : 1

Description

Writes the contents of standard input into the files specified

one line at a time. "-a" option is an append mode.

Example

$ 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