Skip to content

Instantly share code, notes, and snippets.

@escowles
Created April 13, 2021 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save escowles/8545f1623d555ebe1d9445ac85ebcf1c to your computer and use it in GitHub Desktop.
Save escowles/8545f1623d555ebe1d9445ac85ebcf1c to your computer and use it in GitHub Desktop.
#!/bin/sh
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