Skip to content

Instantly share code, notes, and snippets.

@simonsunnyboy
Created November 20, 2021 13:50
Show Gist options
  • Save simonsunnyboy/5aaef30917d73d309932502a40aa285b to your computer and use it in GitHub Desktop.
Save simonsunnyboy/5aaef30917d73d309932502a40aa285b to your computer and use it in GitHub Desktop.
#!/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