La commande
split du terminal, à rechercher dans l'index des numéros d'avosmac, l'a été souvent évoquée pour ce type de question...
j'ai trouvé ça sinon pour t'aider sur cette commande :
SPLIT(1) BSD General Commands Manual SPLIT(1)
NAME
split - split a file into pieces
SYNOPSIS
split [-b byte_count[k|m]] [-l line_count] [file [name]]
DESCRIPTION
The split utility reads the given file (or standard input if no file is
specified) and breaks it up into files of 1000 lines each.
The options are as follows:
-b Create smaller files byte_count bytes in length. If ``k'' is
appended to the number, the file is split into byte_count kilo-
byte pieces. If ``m'' is appended to the number, the file is
split into byte_count megabyte pieces.
-l Create smaller files n lines in length.
If additional arguments are specified, the first is used as the name of
the input file which is to be split. If a second additional argument is
: