#!/usr/bin/awk -f
# Downloadable example 2 for GNU Awk Part 15
{ print "R1 ---" }
{ print "R2",$0; getline }
{ print "R3",$0 }