[augeas-devel] Some ideas about how to use Augeas with IPA

David Lutterkort dlutter at redhat.com
Tue May 13 17:44:32 UTC 2008


On Tue, 2008-05-13 at 17:41 +0000, David Lutterkort wrote:
> (The full file to play with that is attached, just run 'augparse
> pass_switch_value_regexp.aug')

And here's the attachment.

David

-------------- next part --------------
module Pass_switch_value_regexp =

  let lns =  ([ key /u/ ] . [ key /b/ . store /[0-9]+/ ])
           | ([ key /v/ ] . [ key /b/ . store /[a-z]+/ ])

  test lns get "ub42" = { "u" } { "b" = "42" }
  test lns get "vbxy" = { "v" } { "b" = "xy" }
  test lns get "ubxy" = *
  test lns get "vb42" = *

(* Local Variables: *)
(* mode: caml       *)
(* End:             *)


More information about the augeas-devel mailing list