Skip to content

Instantly share code, notes, and snippets.

@sk22
Last active July 5, 2020 19:09
Show Gist options
  • Save sk22/deabc74fcf1b8a3fd4a0b11521119623 to your computer and use it in GitHub Desktop.
Save sk22/deabc74fcf1b8a3fd4a0b11521119623 to your computer and use it in GitHub Desktop.
#!/bin/bash
# tweet.js is located inside twitter-archive.zip/data
cat tweet.js | sed -n 's/^.*"url" : "\(.*\)",$/\1/p' | uniq | xargs curl -sI | sed -n 's/location: \(.*\)/\1/p'
#!/bin/bash
cat urls.txt | xargs curl -sI | sed -n 's/location: \(.*\)/\1/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment