Just posting it here for better visibility: link to the GitHub repository.
This is a collection of scripts that allow some modifications on PDB files. We use them daily in our lab to cut, edit, paste, etc PDB files before or after modelling tasks. They are perfect for command-line use, quick hacks, integration with BASH scripts, etc. For something more complex, look into a library (e.g. Biopython's Bio.PDB).
- They have no dependencies whatsoever.
- They can be chained to each other: e.g.,
pdb_selchain.py -A 1abc.pdb | pdb_chain.py -B