help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Three-Line service comments


From: Juri Jensen
Subject: Re: Three-Line service comments
Date: Fri, 3 Aug 2001 10:06:01 +0200
User-agent: Mutt/1.2.5i

On Thu, Aug 02, 2001 at 12:22:09PM -0700, Tim Auckland wrote:
> Please could you give me an example?  I've tried just embedding $(n) in
> a search string or regexp and it doesn't seem to help.
> 
> I'm trying to delete the three lines:
> 
> #
> # GNATS
> #
> 
> This doesn't find any matches:
>       DeleteLinesContaining "#$(n)# GNATS$(n)#"
> 
> This matches, but only deletes one line out of the three:
> 
>       DeleteLinesMatching "(#$(n))*# GNATS($(n)#)*"

This is a shot in the dark....

What about:

 DeleteLinesMatching "(^#$)$(n)(^# GNATS$)$(n)^#$"

as to indicate that wvery line starts with a "#" and indicate
where it ends....?



-- 
Med venlig hilsen/Best regards

Juri Jensen

Xenux Aps
http://www.xenux.dk
e-mail: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]