Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Created December 30, 2020 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwilkerson/6a7771df49653861f4509bf4cd2e419a to your computer and use it in GitHub Desktop.
Save robwilkerson/6a7771df49653861f4509bf4cd2e419a to your computer and use it in GitHub Desktop.
#/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