Created
December 30, 2020 15:29
-
-
Save robwilkerson/6a7771df49653861f4509bf4cd2e419a 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
#/usr/bin/env bash | |
# Move the downloaded zip to the evaluating directory | |
download=$(find ~/Desktop -regex '.*/[0-9]\{6,\}\.zip') | |
zip=$(basename "$download") | |
candidate=${zip%.*} | |
echo $download | |
echo $zip | |
echo $candidate | |
mv "$download" . | |
unzip "$zip" -d "$candidate" | |
rm "$zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment