Advertisement
flycat

Mass repack .gz to .xz

Nov 26th, 2020 (edited)
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for i in $(ls *.gz)
  4. do
  5.  echo "Decompressing ${i}"
  6.  gunzip ${i}
  7.  echo "Compressing ${i%.*}"
  8.  xz -9 -v ${i%.*}
  9. done
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement