At 8:42 PM -0500 12/9/07, Robert L Cochran wrote: ... >This: > >egrep -v '^($|#)' /etc/ldap.conf > >matches any line which is not blank and does not have an octothorpe in it. ... Is empty or does not start with a #. I think '(^[ \t]$|#)' will match what you said. I don't know if whitespace is allowed in the config file. -- ____________________________________________________________________ TonyN.:' <mailto:tonynelson@xxxxxxxxxxxxxxxxx> ' <http://www.georgeanelson.com/>