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 { ORS = ""; n = "\n"; for (i = 1; i <= 10; i++) n = (n n); \ 9*e6d6c189SCody Peter Mello for (i = 1; i <= 128; i++) print n; print "abc\n" }' | \ 10*e6d6c189SCody Peter Mello $AWK 'BEGIN { RS = ""; ORS = "\n\n" };{ print }' 2>&1 | \ 11*e6d6c189SCody Peter Mello $AWK '/^[^a]/; END { print NR }' 12