5

Parse multiple variable from text file with bash

view full story
linux-howto

http://www.linuxquestions.org – Hello everyone :) I am trying to think of a logic where my file contains some data I had to read and do some processing. Issue is that file contains data multiple times. For example: ::::::::::: var1=value1 var2=value2 ::::::::::: var1=value3 var2=value4 ::::::::::: I have to read first paragraph of variables and do some processing and then move on until the end of file. Variable names are same in whole file but for each paragraph the value is different. I can't think of a logic to attain this task. How can I do it? It should (HowTos)