Cameron Simpson wrote: > On 09Dec2007 15:17, Stuart Sears <stuart@xxxxxxxxxxx> wrote: > | 1. which (uncommented) lines are in /etc/ldap.conf at the moment? > | egrep -v '^($|#)' /etc/ldap.conf > > OT - grep curiosity... > You can embed a "$" inside an alternation? You can embed any regex character inside an alternation. > > Personally, I've always used: > > grep '^[^#]' not bad. hadn't thought of that... Stuart