Skip to content

Instantly share code, notes, and snippets.

@carwash
Created August 7, 2019 16:47
Show Gist options
  • Save carwash/ae3f975f260c43c70cb2418af6434845 to your computer and use it in GitHub Desktop.
Save carwash/ae3f975f260c43c70cb2418af6434845 to your computer and use it in GitHub Desktop.
Download WeTransfer files from the command line
#!/usr/bin/env bash
# Download WeTransfer files from the command line
# Click to start a download, but then stop it; copy the download URL and paste between 'non-interpolating quotes' as an argument to this script.
# MJS 190807
url=$1
output=$(ack -o '(?<=/)[^/\?]+(?=\?)' <(echo $url))
curl $url --location --output $output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment