Skip to content

Instantly share code, notes, and snippets.

@PauloLuan
Created November 24, 2022 13:12
Show Gist options
  • Save PauloLuan/f58582a692cf9c16dfbd957ed23a3604 to your computer and use it in GitHub Desktop.
Save PauloLuan/f58582a692cf9c16dfbd957ed23a3604 to your computer and use it in GitHub Desktop.
Unshorten URL's with CURL
cat urls.txt | while read f; do echo "${f}"; curl -Ls -o /dev/null -w %{url_effective} "${f}" -O; echo "\n"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment