I need to transform some data into assignments. I'm pretty sure it looks like a pretty straightforward job for awk, but I am far from confortable with it.Each data element (and columns) are tab-separated.Data elements may contain spaces and special characters, but no TABs.example input :column1 column2 column3rowA1   rowA2   rowA3rowB1   rowB2   rowB3expected output :column1 = rowA1column2 = rowA2column3 = rowA3column1 = rowB1column2 = rowB2column3 = rowB3(with arbitrary number of rows, not exceeding hundreds)Any clue how to do this ? (with awk or any standard command-line tool on a linux)
How to transform this data into assignations using awk or other?
awk
For example:{    if (NR==1){        for (i=1; i<=NF; ++i){            arr[i] = $i        }    }else{        for (i=1; i<=NF; ++i){            print(arr[i], = ,$i)        }    }    print()}To run:awk -f script.awk input