System/OS
2014.03.11 11:41

[linux] split 명령어

Views 4305 Votes 0 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
138 System/OS [mysql] 시간 관련 SQL구문.. hooni 2013.04.23 10773
137 System/OS OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속 file hooni 2013.04.23 10785
136 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10949
135 System/OS [linux] 시스템 데몬 종류와 설명 hooni 2013.04.23 11139
134 System/OS [doc] TCP/IP 강의 자료 (html) file hooni 2013.04.23 11171
133 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11337
132 System/OS [linux] vi 편집기 간단한 명령과 환경설정 hooni 2003.04.23 11359
131 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11373
130 System/OS php.ini 설정 안됐을때.. ㅋㅋ hooni 2013.04.23 11641
129 System/OS [unix] 유닉스 csh에서 환경변수 등록 hooni 2003.04.23 11699
128 System/OS [linux] 텔넷, FTP 텍스트 모드에서 사용 hooni 2003.04.23 11939
127 System/OS [unix] SUN Solaris 싱글모드.. ㅡ,.ㅡ; hooni 2003.04.23 11992
126 System/OS [linux] 쉘 스크립트 (Shell Script) hooni 2003.04.23 12064
125 System/OS [linux] /etc/fstab 설정 방법.. ㅋㅋ hooni 2013.04.23 12081
124 System/OS [linux] 데스크탑환경(GNOME/KDE) 바꾸기.. hooni 2003.04.23 12101
123 System/OS [linux] 파일내 문자열 찾아 바꾸기 hooni 2013.04.23 12195
Board Pagination Prev 1 3 4 5 6 7 ... 13 Next
/ 13