{"id":19598412,"url":"https://github.com/dotupnet/dotupbashsettings","last_synced_at":"2026-04-19T02:02:13.831Z","repository":{"id":81546378,"uuid":"287255941","full_name":"dotupNET/DotupBashSettings","owner":"dotupNET","description":"Load and save configuration files from bash scripts","archived":false,"fork":false,"pushed_at":"2020-08-13T11:37:06.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T15:12:28.278Z","etag":null,"topics":["bash","bash-script","configuration","configuration-files","ini","linux","settings","settings-files"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dotupNET.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-08-13T11:03:08.000Z","updated_at":"2020-08-25T08:07:56.000Z","dependencies_parsed_at":"2023-03-02T07:01:14.678Z","dependency_job_id":null,"html_url":"https://github.com/dotupNET/DotupBashSettings","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dotupNET/DotupBashSettings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2FDotupBashSettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2FDotupBashSettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2FDotupBashSettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2FDotupBashSettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotupNET","download_url":"https://codeload.github.com/dotupNET/DotupBashSettings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotupNET%2FDotupBashSettings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["bash","bash-script","configuration","configuration-files","ini","linux","settings","settings-files"],"created_at":"2024-11-11T09:06:03.460Z","updated_at":"2026-04-19T02:02:13.759Z","avatar_url":"https://github.com/dotupNET.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotupBashSettings\nLoad and save configuration files from bash scripts\n\nInstall the script:\n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/dotupNET/DotupBashSettings/master/install.sh)\n```\n\nFunctions:\n- **Bash-LoadSettings** *configFile* *configArray*\n- **Bash-SaveSettings** *configFile* *configArray*\n- **Bash-GetSettings** *configFile* *key*\n- **Bash-SetSettings** *configFile* *key* *value*\n- **Bash-PrintSettings** *configArray*\n\n```bash\n\n. path-to-file/BashSettings.sh\n\n# Initialize array that holds the configuration\ntypeset -A config \n\n# Load complete configuration file into variable\nBash-LoadSettings \"$(pwd)/.config\" config\n\n# Print key value pairs\nBash-PrintSettings config\n\n# Modify entry by key\nconfig[AUTO]=9\n\n# Print key value pairs\nBash-PrintSettings config\n\n# Save complete configuration to file\nBash-SaveSettings \"$(pwd)/.config.saved\" config\n\n# Accesss value by key\necho ${config[AUTO]}\n\n# Accesss value by key from file\nautoValue=$(Bash-GetSettings \"$(pwd)/.config.saved\" \"AUTO\")\necho \"AUTO value: $autoValue\"\n\n# Write value by key to file\nBash-SetSettings \"$(pwd)/.config.saved\" \"AUTO\" 99\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotupnet%2Fdotupbashsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotupnet%2Fdotupbashsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotupnet%2Fdotupbashsettings/lists"}