Created
March 27, 2013 10:00
-
-
Save r-plus/5253125 to your computer and use it in GitHub Desktop.
カレントディレクトリ以下のgzをxzに圧縮しなおす
This file contains hidden or 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/sh | |
| FILES=$(find $(pwd) -name "*.gz" -and ! -name "*.tar.gz") | |
| for FILE in $FILES; do | |
| (gunzip -c $FILE | xz > ${FILE%.*}.xz; [ $? -eq 0 ] && rm -f $FILE) & | |
| done | |
| wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment