Skip to content

Instantly share code, notes, and snippets.

@Exchizz
Created July 17, 2016 16:07
Show Gist options
  • Save Exchizz/36d4eab2e60dce805f13e3233736db18 to your computer and use it in GitHub Desktop.
Save Exchizz/36d4eab2e60dce805f13e3233736db18 to your computer and use it in GitHub Desktop.
biggi() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\nbiggi test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); curl --progress-bar --form uploadedfile=@$1 "http://u.biggi.dk/index.php?action=uploadfile" >> $tmpfile; cat $tmpfile | grep -oP '(?<=href=")http://.*?(?=">)' ; rm -f $tmpfile; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment