2024-05-31 21:44:42 +02:00
|
|
|
# Bash INI
|
|
|
|
A simple ini parser written in bash
|
2024-05-31 22:14:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-31 22:15:37 +02:00
|
|
|
## Usage
|
2024-05-31 22:14:53 +02:00
|
|
|
```bash
|
|
|
|
# include the library
|
|
|
|
source "ini.sh"
|
|
|
|
|
|
|
|
# parse a config
|
|
|
|
ini_parse "config.ini"
|
|
|
|
|
|
|
|
# read a value
|
|
|
|
echo "${ini__section_1[first_value]}"
|
|
|
|
```
|
|
|
|
|
|
|
|
An in-depth example can be found in the `example` folder!
|