Last active
March 7, 2016 17:24
-
-
Save rhoconlinux/4334a1ae009118221d5d to your computer and use it in GitHub Desktop.
shortit
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
#!/bin/bash | |
curl -s --url http://ur1.ca/ -d longurl="$1" | sed -n -e '/Your ur1/!d;s/.*<a href="\(.*\)">.*$/\1/;p' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment