On 09Dec2007 20:42, Robert L Cochran <cochranb@xxxxxxxxxxxxx> wrote: >> | egrep -v '^($|#)' /etc/ldap.conf >> >> OT - grep curiosity... >> You can embed a "$" inside an alternation? >> >> Personally, I've always used: >> grep '^[^#]' >> for this task. >> > This: > egrep -v '^($|#)' /etc/ldap.conf Oh, I know what it _does_. I'm just surprised you can put "$" inside a (...) section. I'm sure I've tripped over that constraint somewhere; possibly not with GNU grep. Anyway, my grep incantion is logically equivalent. Cheers, -- Cameron Simpson <cs@xxxxxxxxxx> DoD#743 http://www.cskk.ezoshosting.com/cs/ Actually, it's only 'evolution in action' if they haven't spawned yet. - JAM jmooney@xxxxxxxxxxxxxxxx Not at all, because they might have spawned again had not the hand of fate intervened. I consider such cases a partial victory, at least. - Geoff Miller <geoffm@xxxxxxxxxx> DoD#0996 -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list