I've actually been there.
After doing a few by hand I thought, "I can write a Perl script for this." So I did. That's how I got through it.