for i in `ls mdp | sed "s/\.mdp//"`; do 
mkdir ${i}
grompp -f mdp/${i}.mdp -c et.gro -p et.top -o ${i}/et_${i}.tpr
mdrun -deffnm ${i}/et_${i} -v -nt 1
trjconv -f ${i}/et_${i}.trr -s ${i}/et_${i}.tpr -o et_${i}.pdb
g_energy -f ${i}/et_${i}.edr -o ${i}/et_${i}_en.xvg
g_bond -f ${i}/et_${i}.trr -s ${i}/et_${i}.tpr -o ${i}/bond_${i}.xvg -n b.ndx 
done

