Created
August 7, 2019 16:47
-
-
Save carwash/ae3f975f260c43c70cb2418af6434845 to your computer and use it in GitHub Desktop.
Download WeTransfer files from the command line
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 | |
# 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