I wonder if there exists a tool/script/algorithm to identify multiple molecules and/or atoms in a single XYZ or gaussian log file.
As an example, imagine one does a single point calculation for the ethanol-$\ce{Cl2}$ system, where the two molecules are placed next to each other at some distance. If one wants to detect all participating entities (be it molecules or atoms) what would be the best approach?
Could we use "standard" bond lengths between atoms and atoms allowed max number of bonds to do that? I suspect the problem is much more complicated than that.