[Linux] split 명령어
split은 파일을 같은 크기로 나누는 명령어이다.
병렬로 작업을 처리할 때 유용하게 쓰이는 명령어가 될 것같다.
Usage: split [OPTION] [INPUT [PREFIX]]
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default PREFIX is `x'.
Options:
-a, --suffix-length=N
use suffixes of length N (default 2)
-d, --numeric-suffixes
use numeric suffixes instead of alphabetic
-l, --lines=NUMBER
put NUMBER lines per output file
-b, --bytes=LIST
output only these bytes.
each LIST is made up of one range, or many ranges separated by commas.
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default PREFIX is `x'.
Options:
-a, --suffix-length=N
use suffixes of length N (default 2)
-d, --numeric-suffixes
use numeric suffixes instead of alphabetic
-l, --lines=NUMBER
put NUMBER lines per output file
-b, --bytes=LIST
output only these bytes.
each LIST is made up of one range, or many ranges separated by commas.
병렬로 작업을 처리할 때 유용하게 쓰이는 명령어가 될 것같다.
사용예제:
scop 파일을 1000행씩 나눠서 subscop01, subscopt02 subscop03, ...으로 저장한다.
]$ split -l 1000 -d scop subscop
scop 파일을 1000행씩 나눠서 subscop01, subscopt02 subscop03, ...으로 저장한다.
]$ split -l 1000 -d scop subscop
TRACKBACK ADDRESS :: http://bionote.net/tt/blna999/trackback/47
