Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created July 8, 2016 10:56
Show Gist options
  • Save terrycojones/b7ccf50c60142dba1b4d853491ded592 to your computer and use it in GitHub Desktop.
Save terrycojones/b7ccf50c60142dba1b4d853491ded592 to your computer and use it in GitHub Desktop.
#!/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