Glad you like it :)
But I wouldn't save the location to a file.
Imagine a very bare bones server, where only compress is installed. Your script runs once, saves /bin/compress as the preferred compressor, and never notices the next week when bzip is installed. (It could also have trouble if the executable was moved or deleted...)
Compared with compressing a 600M file, I wouldn't worry about the overhead of doing (at most!) 21 -x's once each time your script starts up...
--
Mike
In reply to Re^3: compressing VERY LARGE files
by RMGir
in thread compressing VERY LARGE files
by gnu@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |