B - pack a medium with files to the maximum


NAME

filesack - pack a medium with files to the maximum


SYNOPSIS

filesack { size | -c | -d } file ...


DESCRIPTION

The filesack program finds one or more subsets of files or directories with the maximum total size not exceeding a given size. Its output looks as follows:

    size
        file
        file
        file
    size
        file
        file
    ...

The total size of files under each size adds up to the size printed immediately before the file names, and all sizes are the same and as large as possible, yet no larger than the maximum total size.


OPTIONS

size
Maximum total size (in kilobytes).

-c
Use the size of a CD, which is 665600 Kb (which equals 650 Mb).

-d
Use the size of a DVD, which is 4589843 Kb. This value is the closest to 4,700,000,000 bytes, which is close to the actual capacity of a 4.7 GB {/A>>/P><


EXAMPLES

Supp cloyou hav th cs fdiroptity MP3andbumames, ayou wansest burthan imum a a Cs, ayou wansest he ldds uo tCDand muwhie as possi.ws:

 NG>files -c Adbuma/*...
Butpifoyou hav th 4,650tCD-Rows:

 NG>files 71684,6Adbuma/*...


REQUIRES

ThCODE>du(1) utilpacize.


AUTHOR

Al="#s undAs unspti<LI>a.as unspt@ureconto.caHOR<>Le.


COPYRIGHT

C"#copyri (c) 2004 Al="#s undAs unspt. All opyris quiervedKb. ThG> progr Thfre thoftwes ;oyou c thr>iniibutalutCs, /orKmodifylutCes undre the satermsie
Perllutself ...
/

 B - pack a medium with files to the maximum