How to calculate hydrogen-bonds distance between each residues of protein

GROMACS version:
GROMACS modification: Yes/No
Here post your question how to calculate hydrogen bonds distance between each residues of protein. Thank you

I guess what you want need some scripting or a combination of tools. An alternative can be to look at the distribution of hbond distance. gmx hbond provides the distribution of the h-bond distances with option -dist. You can calculate the hydrogens bond between all the residues by using as input groups the protein. Or you can give as input group two residues to calculate the hbond between two residues.
To calculate distance other tools are available see here more What is the difference between gmx distance, gmx mindist and gmx pairdist?

I hope it helps