How can I pare down a PDB file in Python to only include specific residues?
With the program RasMol, you can select, as Mad Scientist explained it for PyMol, everything in a specific distance around an atom. RasMol can be run from command line, using a script (with the -script option under UNIX).