Sorry for this question. The bash script turned out to be a one-liner. Yun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20111123/d40bf357/attachment.html>