Created
October 26, 2018 14:29
-
-
Save fxpires/14e6c469c700a9d54ef4eaa82f8e3afd to your computer and use it in GitHub Desktop.
recompress all gzip in current dir files as xz files, keeping the timestamps / recomprime arquivos no diretório atual, de gz para xz, mantendo os timestamps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for FILE in *gz | |
do | |
gunzip ${FILE} | |
UNFILE=${FILE%.*} | |
xz -3vv ${UNFILE} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment