• [^] # Re: split(1)

    Posté par . En réponse au message splitter (découper) des gros fichiers en plus petits fichiers.. Évalué à 3.

    Un exemple :
    [fabrice@vaio-fx502 tmp]$ ls -hl
    total 13M
    -rw-rw-r-- 1 fabrice fabrice 13M aoû 28 00:19 kernel-2.4.22-1.2199.nptl.athlon.rpm
    [fabrice@vaio-fx502 tmp]$ split -C 4m kernel-2.4.22-1.2199.nptl.athlon.rpm kernel-split.
    [fabrice@vaio-fx502 tmp]$ ls -hl
    total 25M
    -rw-rw-r-- 1 fabrice fabrice 13M aoû 28 00:19 kernel-2.4.22-1.2199.nptl.athlon.rpm
    -rw-rw-r-- 1 fabrice fabrice 4,0M aoû 28 00:19 kernel-split.aa
    -rw-rw-r-- 1 fabrice fabrice 4,0M aoû 28 00:19 kernel-split.ab
    -rw-rw-r-- 1 fabrice fabrice 4,0M aoû 28 00:19 kernel-split.ac
    -rw-rw-r-- 1 fabrice fabrice 84K aoû 28 00:19 kernel-split.ad
    [fabrice@vaio-fx502 tmp]$ for i in `ls kernel-split.*` ; do cat $i >> kernel-2.4.22.rpm ; done
    [fabrice@vaio-fx502 tmp]$ ls -l *.rpm ; sha1sum *.rpm
    -rw-rw-r-- 1 fabrice fabrice 12668408 aoû 28 00:19 kernel-2.4.22-1.2199.nptl.athlon.rpm
    -rw-rw-r-- 1 fabrice fabrice 12668408 aoû 28 00:20 kernel-2.4.22.rpm
    87e0efadbb18ccce7875aae1f8c2803956503aa6 kernel-2.4.22-1.2199.nptl.athlon.rpm
    87e0efadbb18ccce7875aae1f8c2803956503aa6 kernel-2.4.22.rpm
    Fab.