hi,
I have a script which is dispaying the output as below:
Column 3:value1
Column 4:value 4
column 8:value 8
column 9:value 9
column 13:value 13
Column 3:value10
Column 4:value 40
column 8:value 80
column 9:value 90
column 13:value 103
However,I need the output in tabular form as below
column 1 column 4 column 8 column 9 column 13
value 1 value4 value 8 value 9 value 13
value 10 value40 value 80 value 90 value 103
I am using below awk command for the above output but it is not coming in tabular form:
awk -F, '($13=="") {print "error"; exit 1}
(NR==1){h3=$3;h4=$4;h8=$8;h9=$9;h13=$13;next}
(NF>1){print h3": "$3"\n"h4": "$4"\n"h8": "$8"\n"h9": "$9"\n"h13": "$13}
' $IFILE>>$OFILE