From afe8096e9aa2a18541e92262d9473de4a65fa29e Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 22 Jul 2009 12:39:21 +0100 Subject: [PATCH] Todo: Suggestion for 'replace' command. --- TODO | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/TODO b/TODO index 5dc8bd5..16d6880 100644 --- a/TODO +++ b/TODO @@ -176,3 +176,25 @@ Other initrd-* commands, such as: initrd-extract initrd-replace + +---------------------------------------------------------------------- + +Some easy non-Augeas methods to edit configuration files. +I'm thinking: + + replace /etc/file key value + +which would look in /etc/file for any instances of + + key=... + key ... + key:... + +and replace them with + + key=value + key value + key:value + +That would solve about 50% of reconfiguration needs, and for the +rest you'd use Augeas, 'download'+'upload' or 'edit'. -- 1.8.3.1