[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use regex in editfiles?
From: |
Wil Cooley |
Subject: |
Re: How to use regex in editfiles? |
Date: |
Tue, 31 Aug 2004 13:56:49 -0700 |
On Sun, 2004-08-29 at 00:47 -0500, Frank Smith wrote:
> Try this instead:
>
> AppendIfNoLineMatching "cfengine[[:blank:]]5308/tcp.*"
>
> which should also match lines with trailing spaces and/or comments.
What I don't understand is why the .* are necessary--why does the regex
have to match the whole line instead of a substring? They aren't for
other regex implementations. I guess I could see a safety issue with
it...
Wil
--
Wil Cooley wcooley@nakedape.cc
Naked Ape Consulting http://nakedape.cc
signature.asc
Description: This is a digitally signed message part