My-split build the my-split with $make touch log.file with (if you not have a log sample) $ for ((i=0; i<100; i++)); do echo aaaaaaaaa >> test.log ; done start to use my-split: $ ./my-split test.log 100 clean env $ make clean