Skip to content

Instantly share code, notes, and snippets.

@fxpires
Created October 26, 2018 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxpires/14e6c469c700a9d54ef4eaa82f8e3afd to your computer and use it in GitHub Desktop.
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
#!/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