Awk based script to convert vertical data into a horizontal table