사용법: split [-l 행_수] [-a 접미어_길이] [파일 [접두어]]
또는: split -b 숫자[k|m] [-a 접미어_길이] [파일 [접두어]]
Flags
Note: The -b and -l flags are mutually exclusive.
-a SuffixLength
Specifies the number of letters to use in forming the suffix portion of the output name files. The number of letters
determines the number of possible output filename combinations. The default is two letters.
-b Number
Splits the file into the number of bytes specified by the Number variable. Adding the k (kilobyte) or m (megabyte)
multipliers to the end of the Number value causes the file to be split into Number*1024 or Number*1,048,576 byte
pieces, respectively.
-l LineCount
Specifies the number of lines in each output file. The default is 1000 lines.
Examples
1 To split a file into 1000-line segments, enter:
split book
This example splits book into 1000-line segments named xaa, xab, xac, and so forth.
2 To split a file into 50-line segments and specify the file-name prefix, enter:
split -l 50 book sect
This example splits book into 50-line segments named sectaa, sectab, sectac, and so forth.
3 To split a file into 2KB segments, enter:
split -b 2k book
This example splits the book into 2*1024-byte segments named xaa, xab, xac, and so forth.
4 To split a file into more than 676 segments, enter:
split -l 5 -a 3 book sect
This example splits a book into 5-line segments named sectaaa, sectaab, sectaac, and so forth, up to sectzzz (a
maximum of 17,576 files).
'OS' 카테고리의 다른 글
truss/tusc 옵션 (0) | 2009.10.28 |
---|---|
tar / gzip / jar / tbz 사용법 (0) | 2009.10.14 |
[AIX] man netstat (0) | 2009.07.27 |
[dbx, truss, kdb, oslevel, lslpp] aix 5l 시스템 정보보기 (0) | 2009.06.03 |
[명령어]Diff (0) | 2009.05.18 |