2012-05-13 8 views

답변

16

split 명령을 살펴 보셨습니까? 자세한 내용은 this남자 페이지를 참조하십시오.

page에는이 명령의 사용 예가 포함되어 있습니다. 이외에도

:

man -k 명령을 사용하면 특정 명령이 무엇인지 확실히 확실하지 않은 경우 유닉스/리눅스 명령을 찾는 오히려 유용하다. man -k 명령으로 키워드를 지정하면 시스템이 관련 명령을 꺼냅니다. 예

% man -k split 

을 수득한다 :

csplit (1)   - split a file into sections determined by context lines 
dirsplit (1)   - splits directory into multiple with equal size 
dpkg-split (1)  - Debian package archive split/join tool 
gpgsplit (1)   - Split an OpenPGP message into packets 
pnmsplit (1)   - split a multi-image portable anymap into multiple single-image files 
ppmtoyuvsplit (1) - convert a portable pixmap into 3 subsampled raw YUV files 
split (1)   - split a file into pieces 
splitdiff (1)  - separate out incremental patches 
splitfont (1)  - extract characters from an ISO-type font. 
URI::Split (3pm)  - Parse and compose URI strings 
wcstok (3)   - split wide-character string into tokens 
yuvsplittoppm (1) - convert a Y- and a U- and a V-file into a portable pixmap 
zipsplit (1)   - split a zipfile into smaller zipfiles 
+0

안녕하세요, 구문이 정확합니까? ** split -lines = 5 1.csv ** – sprabhakaran

+4

@spk : 구문은 정확하지만 파일을 3,260,000 개로 나눕니다. 높은 값을 선택해야합니다. 8,150,000보다 크고 16,300,000보다 작은 양은 두 개의 파일을 만듭니다. – Zeta

+0

@spk가 올바른 값을 선택하는 것과 마찬가지로 원하는대로 할 수 있습니다. 귀하가 질문하신 사항 중 하나라도 귀하의 질문에 대한 정답을 제공 하셨다면, 언제든지 동의 해주십시오 - http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work – Levon

1

분할 -d -n의 l/N의 filename.csv의 tempfile.part한다.

은 파일을 줄 바꿈없이 N 개의 파일로 나눕니다. 위의 주석에서 언급했듯이 헤더는 각 파일에서 반복되지 않습니다.

관련 문제