-
-
Save tombl/66192679d6afb8b2135b13c03984074b to your computer and use it in GitHub Desktop.
Unshorten a adfly url
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 | |
# Just for fun, a commandline unshortner. | |
# When googling, I found an out of date adf.ly unshortener, so I took it upon myself to create a new one | |
x=$(curl -i $1 | grep Location) | |
let "y = ${#x} - 9" | |
echo "$x" | tail -c "$y" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment