split

Split a file by lines or by bytes

Syntax

split [OPTION]… [FILE [PREFIX]]

Example

  • split -b 60 tmpfile split by number of bytes

  • split -l 20 tmpfile split by number of lines