There is a file post_check.ini I need the value set for:
post_check.ini
Max_value=2
How would I get the value 2 from Max_v
2
Max_v
I recommend using crudini which is a dedicated tool to manipulate ini files from shell
value=$(crudini --get /usr/post_check.ini section Max_value)
Details on usage and download at: http://www.pixelbeat.org/programs/crudini/