I’m trying to extract fields from a rectangular matrix in a file “input.dat” using awk which is as follows
Name value1 value2 value3
A 0 100 200
B 100 0 200
C 0 0 0
D 50 50 50
E 0 90 90
to get the output
A.value1=0
A.value2=100
A.value3=200
B.value1=100
.
.
.
.
Or: