[NTLUG:Discuss] sed question
Ralph Green, Jr
severian at mail.joimail.com
Thu Apr 8 00:05:51 CDT 2004
Fred,
Thank you for the reply. Answer to 1-a is no, and the answer to 1-b is
only the characteristics I mentioned before. This must be a robust
solution, so I have to be able to handle any valid ntp.conf file. The
user is not likely to touch the file, but they might.
I had not thought about preserving a history. I'll have to consider
that, but my first thought is that it would not be useful enough for the
effort. I'll give that more thought, though.
Thanks,
Ralph
On Wed, 2004-04-07 at 07:15, fredjame wrote:
> >
> Just a couple of quickies off the top of my head ...
> (1) If the two lines in question are:
> (1-a) always in the same place, you could use the line numbers as the
> addresses instead of the pattern
> (1-b) not always in the same place, is there anything else in the line
> that is constant in addition to "server"?
> That is, can you make a unique identification of each line? If you can,
> you could do a search/replace.
> (2) Would you want to keep of history of the lines replaced/changed?
More information about the Discuss
mailing list