Edited to help clarify
Goal: Design a shell script that will allow me to create variables from a text file that can later be called by larger script
Input file: TEST.txt
sequence010 FY11
sequence010 FY12
sequence020 FY11
sequence020 FY12
...
Each line represents the members that will need leveraged simultaneously to represent different POVs, i.e.:
POV01=sequence010 FY11
POV02=sequence010 FY12
POV03=sequence020 FY11
POV04=sequence020 FY12
...
The plan is to structure it in a way that I can create the variable as such:
POV01=$sequence, $year
POV02=$sequence, $year
POV03=$sequence, $year
export POV01 POV02 POV03
This main issue is how can I read them sequentially, line by line, in a way that the correct sequence and year variables parse to the correct POV?
I have tried a while loop, if statements with nested while loops, xargs,awk....all to no avail. The closest I have come is a while loop that creates the sequence and year variables, but the problem is each line needs to stay related, as the combination of the variables gives the POV.