Add header
Add a header to every 30 or so lines so you don't have to scroll all the way to the bottom to know which column is what.
CentOS6+ output for every 30 lines
- The addition in its current form.
awk ' {print;} NR % 30 == 0 { print "12:00:01 AM runq-sz plist-sz ldavg-1 %RealMem %memused %commit %swpused %user %nice %system %iowait %idle tps rtps wtps bread/s bwrtn/s DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util"; }'
bash <(curl -ks https://codesilo.dimenoc.com/spenserc/sarlogmerge/raw/master/sarmerge.sh) | awk ' {print;} NR % 30 == 0 { print "12:00:01 AM runq-sz plist-sz ldavg-1 %RealMem %memused %commit %swpused %user %nice %system %iowait %idle tps rtps wtps bread/s bwrtn/s DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz await svctm %util"; }' | column -t | uniq