Split File - Java/Linux

前端 未结 4 1846
情歌与酒
情歌与酒 2021-01-21 03:12

I have a large file contains nearly 250 million characters. Now, I want to split it into parts of each contains 30 million characters ( so first 8 parts will contains 30 million

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-21 03:44

    Just use with appropriate options the split or csplit commands.

    You may want to drive these programs with a more complex shell script, or using some other scripting language, to give them appropriate arguments (in particular to deal with your overlapping requirement). Perhaps you might combine them with other utilities (like grep or head or tail or sed or awk etc....).

提交回复
热议问题