Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Download WeTransfer files from the command line
  4. # 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.
  5. # MJS 190807
  6.  
  7. url=$1
  8. output=$(ack -o '(?<=/)[^/\?]+(?=\?)' <(echo $url))
  9. curl $url --location --output $output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement