{"id":15406965,"url":"https://github.com/raphink/augeas-sandbox","last_synced_at":"2025-08-17T11:07:13.363Z","repository":{"id":141344531,"uuid":"2916754","full_name":"raphink/augeas-sandbox","owner":"raphink","description":"Useful scripts for use with Augeas","archived":false,"fork":false,"pushed_at":"2018-10-19T09:55:33.000Z","size":14,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T01:47:56.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-12-05T13:47:58.000Z","updated_at":"2018-10-19T09:55:35.000Z","dependencies_parsed_at":"2023-05-04T08:02:12.036Z","dependency_job_id":null,"html_url":"https://github.com/raphink/augeas-sandbox","commit_stats":{"total_commits":28,"total_committers":4,"mean_commits":7.0,"dds":0.3928571428571429,"last_synced_commit":"5ae6c94b389ec533f47bcbdb8af89d11b1331c46"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raphink/augeas-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Faugeas-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Faugeas-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Faugeas-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Faugeas-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphink","download_url":"https://codeload.github.com/raphink/augeas-sandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphink%2Faugeas-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270837583,"owners_count":24654391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:26:28.040Z","updated_at":"2025-08-17T11:07:13.337Z","avatar_url":"https://github.com/raphink.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a collection of scripts that are useful to use with Augeas.\n\nThey might (or not) be one day ported to real programs into the Augeas project.\n\naugload\n=======\n\n`augload` allows to load files dynamically using a specific lens.\nAs of Augeas 1.0.0, this functionality is available in `augtool` using the `--transform` option,\nand this tool is thus obsolete.\n\naugloadone\n==========\n\n`augloadone` takes a single file name. It loads `augtool` to parse only this file, removing all other lenses. It is an alternative to `augtool` (or using `--transform`) which doesn't involve knowing the lens name. It also sets the context automatically.\n\naugcheck\n========\n\n`augcheck` is a tool to check if a lens is able to parse for a given file.\n\nauggrep\n=======\n\n`auggrep` allows to grep for expressions in an input stream:\n\n    $ head /var/log/syslog | AUGEAS_LENS_LIB=. ./auggrep -l -f logs.commands Logs.syslog\n    /parsed/1/date/time = 09:29:21\n    /parsed/1/date/time = 09:29:31\n    /parsed/1/date/time = 09:29:31\n    /parsed/1/date/time = 09:35:01\n    /parsed/1/date/time = 09:39:01\n    /parsed/1/date/time = 09:45:01\n    /parsed/1/date/time = 09:55:01\n    /parsed/1/date/time = 09:56:47\n    /parsed/1/date/time = 09:56:47\n    /parsed/1/date/time = 09:56:47\n\naugparsediff\n============\n\n`augparse` is a wrapper for the regular `augparse`, usually used to run tests contained within modules.  When comparing trees in tests, `augparsediff` prints a regular unified diff of the expected versus actual tree, making it easier to find the differences.\n\n```diff\n$ augparsediff -c -I lenses/ lenses/tests/test_mysql.aug \nSyntax error in lens definition\nFailed to load lenses/tests/test_mysql.aug\n--- expected\t2015-06-12 11:25:32.982707547 +0200\n+++ actual\t2015-06-12 11:25:32.986707733 +0200\n@@ -113,6 +113,9 @@\n     { \"max_allowed_packet\" = \"16M\" }\n     {  }\n   }\n+  { \"!includedir\" = \"/etc/mysql/middle_include\" }\n+  { \"!include\" = \"/etc/mysql/middle_include.conf\" }\n+  {  }\n   { \"target\" = \"mysql\"\n     { \"#comment\" = \"no-auto-rehash\t# faster start of mysql but no tab completition\" }\n     {  }\n```\n\naugsed\n======\n\nYou can use `augsed` to modify an input stream:\n\n    $ getent passwd  | ./augsed Passwd.lns 'set *[uid=\"0\"]/name \"Robert Oot\"'\n    root:x:0:0:Robert Oot:/root:/bin/bash\n    daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n    bin:x:2:2:bin:/bin:/bin/sh\n    sys:x:3:3:sys:/dev:/bin/sh\n    sync:x:4:65534:sync:/bin:/bin/sync\n    games:x:5:60:games:/usr/games:/bin/sh\n    man:x:6:12:man:/var/cache/man:/bin/sh\n    lp:x:7:7:lp:/var/spool/lpd:/bin/sh\n    mail:x:8:8:mail:/var/mail:/bin/sh\n    news:x:9:9:news:/var/spool/news:/bin/sh\n    uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh\n    proxy:x:13:13:proxy:/bin:/bin/sh\n    www-data:x:33:33:www-data:/var/www:/bin/sh\n    backup:x:34:34:backup:/var/backups:/bin/sh\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphink%2Faugeas-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphink%2Faugeas-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphink%2Faugeas-sandbox/lists"}