Created
July 8, 2016 10:56
-
-
Save terrycojones/b7ccf50c60142dba1b4d853491ded592 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/sh | |
for id in 5DTG | |
do | |
newid=`curl -v --max-redirs 1 -L "http://www.rcsb.org/pdb/explore/explore.do?structureId=$id" 2>&1 | \ | |
egrep Location | tail -n 1 | cut -d= -f3` | |
if [ $id != $newid ] | |
then | |
echo "$id was renamed to $newid" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment