nem.ec

Programming Information Security Recipes Personal Code Snippets

Extract redirect destination from a shortlink

curl -s -v http://bit.ly/1sNZMwL 2>&1 \
  | grep -o -E 'Location: .+' \
  | sed 's/Location: //'
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.