#!/bin/bash

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_d -deffnm ${i}/et_${i} -v -nt 1

trjconv -f ${i}/et_${i}.trr -s ${i}/et_${i}.tpr -o ${i}/et_${i}.pdb

