1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/src/linux_read_ini.sh
2018-04-14 21:34:53 +08:00

13 lines
213 B
Bash

#!/bin/sh
ReadINIfile()
{
Configfile=$1
Section=$2
Key=$3
ReadINI=`awk -F '=' '/\['$Section'\]/{a=1}a==1&&$1~/'$Key'/{print $2;exit}' $Configfile`
echo "$ReadINI"
}
ReadINIfile $1 $2 $3