HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/certbot/current/usr/share/augeas/lenses/dist/ethers.aug
(* Parsing /etc/ethers *)

module Ethers =
  autoload xfm

  let sep_tab = Util.del_ws_tab

  let eol = del /[ \t]*\n/ "\n"
  let indent = del /[ \t]*/ ""

  let comment = Util.comment
  let empty   = [ del /[ \t]*#?[ \t]*\n/ "\n" ]

  let word = /[^# \n\t]+/
  let address =
    let hex = /[0-9a-fA-F][0-9a-fA-F]?/ in
      hex . ":" . hex . ":" . hex . ":" . hex . ":" . hex . ":" . hex

  let record = [ seq "ether" . indent .
                              [ label "mac" . store  address ] . sep_tab .
                              [ label "ip" . store word ] . eol ]

  let lns = ( empty | comment | record ) *

  let xfm = transform lns (incl "/etc/ethers")