[gmx-users] Number/name of the last frame in a trajectory

Mirco Wahab mirco.wahab at chemie.tu-freiberg.de
Wed Jan 11 11:32:49 CET 2012


For checking the "id" of the last frame contained
in a trajectory, I usually apply ugly command line
hacks like:

  echo "0"|trjconv -dump 1e10 -o /tmp/x.gro 2>&1>/dev/null|perl -lne 'print $1 if /t=(\d+)$/'

which might look awe-inspiring first but is of course tiresome.
Did I overlook the appropriate trjconv-option for this task?

Why would you need that? E.g. for saving the last snapshot
from a trajectory under the name of its time step.

Thanks in advance,

M.



More information about the gromacs.org_gmx-users mailing list