#!/bin/bash
filepath=conf.ini
dos2UNIX -n $filepath conff.ini
cp conff.ini conf.ini
while read line
do
case "$line" in
[^#]* )
valuename=`echo $line | awk '{print $1}'`
value=`echo $line | awk '{print $2}'`
echo $valuename
echo $value
sed -i "s#{$valuename}#$value#g" `grep {$valuename} -rl .`
;;
esac
done< $filepath
filepath=conf.ini
dos2UNIX -n $filepath conff.ini
cp conff.ini conf.ini
while read line
do
case "$line" in
[^#]* )
valuename=`echo $line | awk '{print $1}'`
value=`echo $line | awk '{print $2}'`
echo $valuename
echo $value
sed -i "s#{$valuename}#$value#g" `grep {$valuename} -rl .`
;;
esac
done< $filepath