Molecular weight of the system

GROMACS version:
GROMACS modification: Yes/No
Here post your question Is there a simple and easy way to compute the molecular weight of a system from a gro file?