[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need 'UncommentAndSetValue' or some such
From: |
Christopher Browne |
Subject: |
Re: Need 'UncommentAndSetValue' or some such |
Date: |
Thu, 27 Oct 2005 12:41:03 GMT |
> Christopher Browne wrote:
>> I'd *love* to have something that would say something like...
>> AssignField LHS="com.foo.bar.jdbc.url"
>> RHS="pgsql:$(dbhost):$(dbport):$(dbuser)"
>> separator="="
>
> Did someone consider code along the lines of
> SplitOn = ( = )
> SetLine "com.foo.bar.jdbc.url=pgsql:somehost:5432:user"
> ReplaceLinesMatchingField "1"
> ?
That would do it too, although I think the syntax needs to involve
using one command, with multiple parameters, not three with one.
Maybe...
SetLine Value = "com.foo.bar.jdbc.url=pgsql:somehost:5432:user"
Separator = ( = )
MatchField = ( 1 )
The point is to have a reasonably elegant syntax for this, as that is,
after all, the point of cfengine.
--
(reverse (concatenate 'string "moc.liamg" "@" "enworbbc"))
http://cbbrowne.com/info/
If we were meant to fly, we wouldn't keep losing our luggage.
- Re: Need 'UncommentAndSetValue' or some such, (continued)
- Re: Need 'UncommentAndSetValue' or some such, Ed Brown, 2005/10/27
- Re: Need 'UncommentAndSetValue' or some such, Alexander Jolk, 2005/10/28
- Re: Need 'UncommentAndSetValue' or some such, Chip Seraphine, 2005/10/27
- Re: Need 'UncommentAndSetValue' or some such, Tim Nelson, 2005/10/27
- Re: Need 'UncommentAndSetValue' or some such, Mark Burgess, 2005/10/28
- Re: Need 'UncommentAndSetValue' or some such, Josh Lothian, 2005/10/28
- Re: Need 'UncommentAndSetValue' or some such, Mark Burgess, 2005/10/28
Message not available
Message not availableRe: Need 'UncommentAndSetValue' or some such,
Christopher Browne <=
RE: Need 'UncommentAndSetValue' or some such, David Masterson, 2005/10/28
RE: Need 'UncommentAndSetValue' or some such, David Masterson, 2005/10/28