awk 'NR%3==1{ name=$0; next } { print name, $0 }' file
If the condition is true, save the record to variable `name` and continue with the `next` record.
Print `name` and current record otherwise.
awk 'NR%3==1{ name=$0; next } { print name, $0 }' file
If the condition is true, save the record to variable `name` and continue with the `next` record.
Print `name` and current record otherwise.