1*e6d6c189SCody Peter Mello#!/bin/bash
2*e6d6c189SCody Peter Mello
3*e6d6c189SCody Peter Melloif [[ -z "$AWK" ]]; then
4*e6d6c189SCody Peter Mello    printf '$AWK must be set\n' >&2
5*e6d6c189SCody Peter Mello    exit 1
6*e6d6c189SCody Peter Mellofi
7*e6d6c189SCody Peter Mello
8*e6d6c189SCody Peter Mello$AWK 'BEGIN { for (i = 1; i <= 128*64+1; i++) print "abcdefgh123456\n" }' 2>&1 | \
9*e6d6c189SCody Peter Mello    $AWK 'BEGIN { RS = ""; ORS = "\n\n" }; { print }' 2>&1 | \
10*e6d6c189SCody Peter Mello    $AWK '/^[^a]/; END{ print NR }'
11