Hey,

> directly. I think you want this (assuming that cols 5,6,7 give you the
> dx,dy,dz, which I believe that they do):
>
> cat pullx.xvg | grep -v '[#|@]' | awk '{print $1,sqrt($5*$5+$6*$6+$7*$7)}' >
> my.data

Nothing directly harmful of course, but why using three programs for
this? awk will do fine:

awk '/^...@]/{print $1,sqrt($5*$5+$6*$6+$7*$7)}' > my.data

Tsjerk

-- 
Tsjerk A. Wassenaar, Ph.D.

post-doctoral researcher
Molecular Dynamics Group
Groningen Institute for Biomolecular Research and Biotechnology /
University of Groningen
The Netherlands
-- 
gmx-users mailing list    gmx-users@gromacs.org
http://lists.gromacs.org/mailman/listinfo/gmx-users
Please search the archive at http://www.gromacs.org/search before posting!
Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to gmx-users-requ...@gromacs.org.
Can't post? Read http://www.gromacs.org/mailing_lists/users.php

Reply via email to