awk to change the record separator (RS) to every 2 lines

Viewed 7475

I am wondering how to use Awk to process every 2 lines of data instead of every one. By default the record separator (RS) is set to every new line, how can I change this to every 2 lines.

4 Answers
Related