編集-tarではなく1つのファイルのみを圧縮しているため、gzipまたはgunzipを使用したい. gunzip を使用しようとすると、次のエラーが発生します。
gzip: /users/tnea01/logfile10.tar.gz: No such file or directory
gzip: /users/tnea01/logfile10.log: unknown suffix -- ignored
ログファイルを見つけてgzipするために実行しているコマンドは次のとおりです。
find /users/tnea01/logfile10.log -type f -exec sh -c \ 'gunzip /users/tnea01/logfile_archive/$(basename $0)_$(date -r {} +%F).gz $0' {} \;