file-cutter split a file into two files by a index command file-cutter $fileName $index example file.txt content is "abcdefg" file-cutter file.txt 3 output: file.txt-1: "abc" file.txt-2:"defg" also your can cut data file