필터 지우기
필터 지우기

divide a large text file into two text files

조회 수: 3 (최근 30일)
Amr Hashem
Amr Hashem 2015년 5월 18일
댓글: Amr Hashem 2015년 5월 19일
i have a large text file more than 600 mB. i couldn't open it. is there is any way to open it? or split\divide it into smaller text files? or any code can help?

채택된 답변

per isakson
per isakson 2015년 5월 19일
편집: per isakson 2015년 5월 19일
Alternatives
  • The free (as in beer) program GSplit splits the file. I was able to split a 16GB text file successfully minutes after downloading. The documentation is okey. (Runs on Windows.)
GSplit: Split large text and similar files like large server logs and other
CSV files by number of lines or occurrences of a specified pattern. Optionally
insert headers into each piece file.
  • loop over the lines of the huge file and write to smaller files
  • and memmapfile

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by