Hands-on task
Compress logs in parallel and safely with respect to spaces
The directory /root/logs contains *.log files, some with spaces in their names (error 1.log). Compress each log with the gzip utility (the output will be *.log.gz files, gzip deletes the originals itself), running the compression in several parallel processes. The pipeline must correctly survive spaces in names.
- find
- xargs
- parallelism
- -print0
- gzip