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? Personally, I've always used: grep '^[^#]' for this task. Cheers, -- Cameron Simpson <cs@xxxxxxxxxx> DoD#743 http://www.cskk.ezoshosting.com/cs/ When a man rides a Motorader he stays forever young. - German saying