I have written a Perl script to choose problems from a LaTeX test bank. A test bank is made up like an ordinary test, only that it has a large number of problems.
The script skips past problems not listed by number in a special input file and it copies everything else to a version of the test. No special numbering of problems is required in the test bank. The script counts problems so that they can be referred to with the numbers that appear on a printed copy of a test bank.
You might call it a problem filter -- it filters out problems that aren't listed by number in the input file.
New: fil2.txt --
Here's the script: fil.txt --
read the comments at the beginning of this file for more details.
The extension has been set to .txt so that it is easy to get with a web
browser. If I use the .pl extension the server thinks its special.
Of course, use this at your own risk. However, I've never lost a test bank. Just be aware that a test version can be overwritten upon re-running the script on the same input file.