to split into two parts at selected line number head -n 1000 large_file.txt > part1.txt # get top 1000 linestail -n +1001 large_file.txt > part2.txt # get all lines starting from lines 1001 to end of fileto split into two parts at selected line number (new first line of second part) csplit -sf part. large_file.txt 1001 part.00 # contains lines 1..1000 part.01 # contains lines 1001...end to split a large file into several parts of a maximal file size split <size> <filename> <prefix> split large fasta file into several part of same sequence number # split large uniref100.fasta file into 8 parts pyfasta split -n 8 uniref100.fasta
|
Tools > Ubuntu/Linux server >