[linux] split 명령으로 생성된 파일들을 바로 gzip으로 압축하기
아래와 같이 마지막 붉은색 gzip 명령을 수행하면 된다.
split -n l/100 --numeric-suffixes=0 --suffix-length=5 input-file.txt output_directory/part- && gzip output_directory/part-*위에 사용된 split 명령에 대한 설명은 http://adagio33-nlp.blogspot.com/2020/02/linux-split-n-option.html 참조
댓글