A simple ini parser written in bash
Go to file
DrMaxNix deaa5a533a 📝 add setup instructions 2024-05-31 23:03:47 +02:00
example 📝 add examples 2024-05-31 22:14:53 +02:00
.editorconfig 🔧 add editorconfig 2024-05-31 21:44:49 +02:00
LICENSE 📄 add license 2024-05-31 21:44:56 +02:00
README.md 📝 add setup instructions 2024-05-31 23:03:47 +02:00
ini.sh 🚚 mark executable 2024-05-31 21:48:03 +02:00

README.md

Bash INI

A simple ini parser written in bash

Setup Instructions

Install required tools:

$ sudo apt update
$ sudo apt install sed

Clone git repository:

$ git clone https://git.tjdev.de/DrMaxNix/bash-ini.git
$ cd bash-ini

Usage

# 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!