Created
September 16, 2020 12:31
-
-
Save escowles/3eb2157e4c325e617d8928182c73ba56 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
# lookup redirect URL for all ARKs in file "arks.txt" | |
function f | |
{ | |
read ARK | |
while [ "$ARK" ]; do | |
LOC=`curl -s -I https://n2t.net/$ARK | grep Location` | |
echo $ARK $LOC | |
read ARK | |
done | |
} | |
cat arks.txt | f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment