I need help :) I have a file like this:
AA BC FG
RF TT GH
DD FF HH
(a few number of rows and three columns) and I want to put the letters of each column in a variable step by step in order to give them as input in another script. So I would like to obtain:
for the 1° loop:
var1 = AA
var2 = BC
var3 = FG
for the 2° loop:
var1 = RF
var2 = TT
var3 = GH
for the 3° loop:
var1 = DD
var2 = FF
var3 = HH
while read -r var1 var2 var3; do <something with them>; done < file
– steeldriver Nov 8 '16 at 17:40