Contents

System/OS
2014.03.11 11:41

[linux] split 명령어

Views 4399 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
381 System/OS [linux] Proftpd 설치 가이드 hooni 2003.04.23 13090
380 System/OS [linux] ProFTPD 타임아웃 설정 hooni 2003.04.23 12912
379 System/OS [linux] resolv.con 초기화 되는 문제 hooni 2014.04.05 4704
378 System/OS [linux] root 전환시 패스워드 없이 su 사용하기 hooni 2013.12.22 12795
377 System/OS [linux] root도 삭제하지 못하는 파일 속성 hooni 2003.04.23 12466
376 System/OS [linux] sendmail 설정/사용 hooni 2003.04.23 14641
» System/OS [linux] split 명령어 hooni 2014.03.11 4399
374 System/OS [linux] SSH에 대한 기본 설명과 설치/설정 hooni 2013.04.23 10668
373 System/OS [linux] ssh에서 원격 파일 전송하기.. hooni 2013.04.23 14229
372 Develop [linux] tar 명령어 뽀개기.. ㅋㅋ hooni 2003.04.23 7815
371 System/OS [linux] The Ultimate Wget Download Guide With 15 Awesome Examples hooni 2020.05.26 1004
370 System/OS [linux] vi 편집기 간단한 명령과 환경설정 hooni 2003.04.23 11409
Board Pagination Prev 1 ... 62 63 64 65 66 67 68 69 70 71 ... 98 Next
/ 98