[EMAIL PROTECTED] (Debian Bug Tracking System) writes: > I have a /etc/bacula/bacula-fd.conf file that contains, amoung other > things, this: > > Director { > Name = backup-dir > Password = "foo" > } > > Director { > Name = backup-mon > Password = "bar" > Monitor = yes > } > > I am trying to delete just the second section. > I tried this: > > BeginGroupIfLineMatching " name = .+-mon" > IncrementPointer "-1" > DeleteToLineMatching "\}" > DeleteNLines "1" > EndGroup > > But it never deletes the leading "Director {" line. Examining it under -v > reveals that the IncrementPointer call doesn't seem to be getting run at all > (other IncrementPointer calls in the same file edit do cause the pointer > to be modified). > > When used outside of a group, IncrementPointer looks fine.
I've tried this with both 2.1.20-1 and 2.2.3-1, and it works for me. You have a typo in the BeginGroupIfLineMatching, it should be Name, not name. Can you still reproduce this? - Werner -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]