#!/bin/bash
for i in {1..5};do
    
    #grompp -f ${i}.mdp -c et.gro -p et.top -o et_${i}.tpr
    #mdrun -deffnm et_${i} -v -nt 1
    #trjconv -f et_${i}.trr -s et_${i}.tpr -o et_${i}.pdb
    #echo -e "Bond\nKinetic-En.\n0" | g_energy -f et_${i}.edr -o et_${i}_en.xvg > et_${i}.txt


    g_bond -f et_${i}.trr -s et_${i}.tpr -o bond_${i}.xvg -n b.ndx > bond_${i}.txt
    #echo -n "$ep	" 
    #awk '/^Coulomb/{print $3}'  vb_${i}.txt
done