Last active
July 5, 2020 19:09
-
-
Save sk22/deabc74fcf1b8a3fd4a0b11521119623 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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' |
This file contains hidden or 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
#!/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