adam.nz aboutpostsprojectscontact
# awk '/DAILY/ {x=$0;next } {print x,$0}'
Puts line matching /DAILY/ into $x, then skips to the next line and prints $x followed by the next line. Useful for generating reports when each log entry spans two lines. Eg. line 1 and 2 get merged into line 1, and line 3 and 4 get merged into line 2 etc. (from Shannon)