hello,
I need to set dynamic variable from an .ini file in a shell script.
Assume the input file is in
using :
file="install.ini" while IFS== read -r f v do eval "$f=$v" done <"$file"
did the trick.
source input.ini
Or
. input.ini
More info
<source | .> filename [arguments] Execute commands from a file in the current shell.