Skip to content

Instantly share code, notes, and snippets.

@abscondment
Created February 6, 2013 17:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abscondment/4724061 to your computer and use it in GitHub Desktop.
Save abscondment/4724061 to your computer and use it in GitHub Desktop.
brendan@ishmael:~$ cat `which resolve`
#!/bin/sh
(echo $1 && curl -LIs "$1" | grep '^Location' | cut -d' ' -f2) | cat -n
brendan@ishmael:~$ resolve http://t.co/zplRZif
1 http://t.co/zplRZif
2 http://wck.me/1SX?xvpt
3 http://tivtter.com/r3
4 http://tivtter.com/r3/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment