freePat is a Windows program loosely based on this script. It also supports international patents.
0.8 - improved error checking
0.9 - fixed error on bash 2.x
0.95 - support for non-utility patents (from Juhana Sadeharju)
0.97 - fix comma-separated numbers
1.00 - DNS name is gone, use numeric IP address instead (by Richard Ellis)
1.01 - Compatible with more Unixes: no longer uses -c switch to head(1) and /dev/stdin (thanks to Roger Cole)
1.02 - No longer depends on /dev/stderr, workaround for ".pdf.pdf" extension, fix to verify() function (thanks to Daniel Webb)
1.03 - Use new DNS name of search site
1.10 - Changed to work with new layout of USPTO site. Thanks to Thomas Bøge!
1.20 - Supports applications as well as issued patents. Thanks to Thomas Bøge again!
1.21 - Script will run regardless of where bash is installed, as long as it's in the search path.
1.22 - Fix USPTO image server name for patent applications.
1.23 - Fixed to work with changed USPTO site. Thanks to Mark Kahrs!.
1.30 - No longer requires GhostScript, only libtiff
1.31 - Improved error checking
1.32 - Fixed to work with changed USPTO site. Thanks again to Mark Kahrs!.
Download
Download the script here. Don't forget to chmod +x it.
.