System/OS
2014.03.11 11:41
[linux] split 명령어
조회 수 4364 댓글 0
1. 기능
텍스트 파일을 여러 조각으로 나눈다.
2. 사용법
split [option] [input]
파일을 나누게 되면 파일의 이름은 xaa, xab, xac 형식으로 만들어 진다.
이름을 지정할 경우 x 대신 지정한 글자가 들어간다.
3. 옵션 설명
-b N : N byte 만큼씩 파일을 분할한다.
-l : 라인의 개수만큼씩 파일을 분할한다.
4. 사용예
[root@ls ]# split -l 10 anaconda-ks.cfg
> anaconda-ks.cfg 파일을 10개의 라인씩 묶어 여러 개의 파일로 나눈다.
[root@ls ]# split -b 500 anaconda-ks.cfg
> anaconda-ks.cfg파일을 500byte씩 묶어서 여러 개의 파일로 나눈다.
[root@ls ]# split -b 300 _d test anaconda-ks.cfg
> anaconda-ks.cfg 파일을 300byte씩 묶어서 여러 개의 파일로 나눈다.
> 단 파일의 이름은 test이름을 넣는다.
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
202 | System/OS |
[apache2] Redirect HTTP to HTTPS
![]() |
hooni | 2022.02.03 | 815 |
201 | System/OS |
[macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’
![]() |
hooni | 2022.06.01 | 910 |
200 | System/OS | [linux] The Ultimate Wget Download Guide With 15 Awesome Examples | hooni | 2020.05.26 | 955 |
199 | System/OS | 개인적으로 쓰고 있는 bash_profile | hooni | 2015.01.16 | 958 |
198 | System/OS | 개인적으로 쓰고 있는 zshrc 파일 | hooni | 2022.02.25 | 967 |
197 | System/OS | [mac] How to uninstall MySQL on Mac OS. | hooni | 2017.11.08 | 1007 |
196 | System/OS |
[virtualbox] VirtualBox에 Ubuntu 설치하기
![]() |
hooni | 2019.11.22 | 1030 |
195 | System/OS |
[펌] 마이크로서비스, 모노리포, SRE, ... 덮어놓고 구글 따라하면 안 되는 기술들
![]() |
hooni | 2020.10.15 | 1075 |
194 | System/OS | 콘솔에서 패스워드 걸린 zip 압축하는 명령 | hooni | 2018.03.02 | 1087 |
193 | System/OS | [mac] 패키지 매니저, MacPort | hooni | 2015.01.03 | 1099 |
192 | System/OS | [svn] Can't convert string from native encoding to 'UTF-8' 메시지가 나오는 경우 | hooni | 2014.12.18 | 1127 |
191 | System/OS | [mac] Homebrew/rvm/cocoapod setting | hooni | 2017.07.29 | 1129 |