awk -F'=' 'NR%3 == 1 {x=$1} NR%3 == 0 {print x"="$2}' hoge.txt