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 column3 rowA1 rowA2 rowA3 rowB1 rowB2 rowB3
expected output :
column1 = rowA1 column2 = rowA2 column3 = rowA3 column1 = rowB1 column2 = rowB2 column3 = 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)