[gmx-users] gmx gangle in a for loop

Alex alexanderwien2k at gmail.com
Wed Nov 6 03:33:36 CET 2019


Dear all,
Could one kindly let me know how $i should come in gmx gangle used in a for
loop to avoid syntax errors?
I tested different flavors like "$i", "${i}", ..., and still the problem is
here.

#!/bin/bash/
for i in {1..1000}
do
        gmx gangle -g1 vector -group1 'group $i and name C10 plus group $i
and name C20' -g2 vector -group2 'cog of group 0 plus cog of group $i' -n
ind.ndx -f ind.xtc -s ind.tpr -oav aver$i.xvg -oh hist$i.xvg
done

Thank you
Alex


More information about the gromacs.org_gmx-users mailing list