Created
November 20, 2021 13:50
-
-
Save simonsunnyboy/5aaef30917d73d309932502a40aa285b to your computer and use it in GitHub Desktop.
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 i in *.adz | |
do | |
adfname=$(basename -s adz ${i}) | |
adfname="${adfname}adf.gz" | |
echo $adfname | |
# rename file | |
mv "$i" "$adfname" | |
# unpack | |
gunzip "$adfname" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment