Hi Leila, You didn't enclose your selection string, you enclosed some words in your selection string.
> g_select -f com_ta_full_3.xtc -s com_ta_full.tpr -n index.ndx -oi -select > "Close to Protein" 'resname' 'SOL' and within 0.25 of group 'Protein' g_select -f com_ta_full_3.xtc -s com_ta_full.tpr -n index.ndx -oi -select '"Close to Protein" resname SOL and within 0.25 of group Protein' Cheers, Tsjerk -- Tsjerk A. Wassenaar, Ph.D. post-doctoral researcher Molecular Dynamics Group * Groningen Institute for Biomolecular Research and Biotechnology * Zernike Institute for Advanced Materials 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/Support/Mailing_Lists/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/Support/Mailing_Lists