Split

From BITS wiki
Jump to: navigation, search

The split command splits up text files.

E.g. split a fastQ file into smaller blocks.

zcat mybig.fastq.gz | split -d -a 2 -l 4000000 - mypart-
  • -d numerical suffices (default is letters)
  • -a two digit numerical suffices
  • -l the number of lines
  • mypart- gives the base-name for the produced bins