bin bash IFS for str in cat ini sed egrep -v do eval echo str sed done

1
2
3
4
5
6
7
#!/bin/bash
IFS=$'\n'
for str in `cat ini | sed 's/^ *//' | egrep -v '^$|^#'`; do
eval $(echo $str|sed 's/ *=/=/;s/= */=/')
done
echo $test
echo $var