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 DVD media.
EXAMPLES
Suppose you have a collection of MP3 albums, and you want to burn them to a CD, and you want to fill up the CD as much as possible.
filesack -c Albums/*
But if you have a 700 Mb CD-R:
filesack 716800 Albums/*
REQUIRES
The du(1) utility.
AUTHOR
Alexander Anderson <a.anderson@utoronto.ca>
COPYRIGHT
Copyright (c) 2004 Alexander Anderson. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.