Contents

System/OS
2014.03.11 11:41

[linux] split 명령어

Views 4305 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
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이름을 넣는다.

?

List of Articles
No. Category Subject Author Date Views
58 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4480
57 System/OS [linux] 쉘스크립트 expr hooni 2014.03.11 15618
56 System/OS [linux] awk 명령어 hooni 2014.03.11 4955
» System/OS [linux] split 명령어 hooni 2014.03.11 4305
54 System/OS HTTPS와 SSL 인증서 file hooni 2014.03.11 7546
53 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 4286
52 System/OS [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기 file hooni 2014.03.12 5117
51 System/OS [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." hooni 2014.04.05 4838
50 System/OS [linux] resolv.con 초기화 되는 문제 hooni 2014.04.05 4616
49 System/OS [linux] yum 업데이트 시 커널 제외하기 hooni 2014.09.11 1258
48 System/OS SVN(Subversion) 설치와 설정 (sasl 인증 적용 포함) file hooni 2014.09.11 5666
47 System/OS [svn] SVN trunk 변경사항 되돌리기 (SVN Rollback) hooni 2014.11.27 1564
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 Next
/ 17