I downloaded portions of ZINC database in mol2 format. Each part contains 20000 ligands. I would like to split each one into 100 ligands chunks. I know that with openbabel one can do
babel -i zinc_part.mol2 a.mol2 -m
but the chunks are always individual files. Later one could of course concatenate them, but this can be a mess. I wonder if there are other babel options or another approaches to divided a large mol2 files into chunks of N ligands each.
For Unix based OS (no guarantee under Windows).