Now i see the output of replace1 at first iteration as "/sbin/poweroff"
My problem is if i see the output of replace1 as a string I should skip this line and proceed to second iteration where I can fetch the second line
Please help..
If you do the extra mile and make the config file's entries like hhh.powersave-nap=1 , you could source them and immediately have the variables defined for later processing.