From: Nuno Loureiro Ferreira (
Date: Tue Jul 17 2007 - 10:18:04 CDT

eh eh eh

I'm not a windows user.
Grep is a *nix command, not a tcl one, that's why its executed
with "exec grep ...".
But, I know that cygwin has grep (or similar command). Check
Perhaps someone out there working on windows could help you.
There's zillions of ways to script, so there's always a way to do what
you want using plain tcl/vmd commands.


P.S. Take this as an opportunity to slowly migrate to linux.

sally cii wrote:
> Dear Nuno,
> Thank you very much for your time. I have tried the script, it gave
> error message " couldn't execute "grep": no such file or directory"
> after printing out "sorting pairs of contacts ...", I think this
> happens because I am running VMD under Windows environment other than
> Unix, can I ask how should I modify the script in order to run it in
> Windows? I looked into the tcl manual, but couldn't finger out which
> command should I use to replace grep? Thank you again for your help.