Skip to content

Instantly share code, notes, and snippets.

@jlollis
Last active October 17, 2019 20:55
Show Gist options
  • Save jlollis/3f1d4464b08640a487eaaeb654ade4b8 to your computer and use it in GitHub Desktop.
Save jlollis/3f1d4464b08640a487eaaeb654ade4b8 to your computer and use it in GitHub Desktop.
download zip from URL and extract to folder bash - Coursera initial project folder setup (for all Coursera courses)
# get URL from the download link in the first assignment - they usually host everything in the same place
curl -sS http://URL/example.zip # gives you the directory structure where its hosted
curl -sS http://URL/example.zip > example.zip
mkdir directory
mv example.zip directory/example.zip
unzip directory/example.zip
tree
rm directory/example.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment