Batch compress files
Batch compress files with the following tools
- find : https://linux.die.net/man/1/find
- GNU parallel: https://zenodo.org/records/1146014 (PDF) and https://www.gnu.org/software/parallel/parallel_tutorial.html (HTML)
- 7z
- xz
Use XZ to compress all CSV files¶
Warning
xz removes the original file after compression by default. You can add -k option to keep the file.
Tip
- Use
--dry-runbefore actually running the jobs to ensure the commands are right. - Use
-<num>to change the compression level. For example,xz -z -9 {}uses maximum compression.