Reputation: 541
For future reference, I want to compile a list of compression tools that are able to recurse into directories.
For example, gzip -r <directory>
recurses into directories, and compresses every file it finds. On the other hand, zip -r foo.zip foo
does not do what I mean - it recurses into the foo
directory, and appends all zipped files to a single archive, foo.zip
.
These tools don't have a built-in method for recursing into directories:
bzip2
lzma
lrzip
xz
zip
These tools can recurse into directories
gzip (grzip -r
)
lrzip (version 0.630)
Are there any tools I missed?
Upvotes: 0
Views: 318
Reputation: 17502
Anything can be made to do that quite easily:
find directory_to_compress -type f -exec compressor -o {}.compressed {} \;
Upvotes: 0