xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/getlnhd.awk (revision ed093b41a93e8563e6e1e5dae0768dda2a7bcc27)
1BEGIN { pipe =      "cat <<EOF\n"
2        pipe = pipe "select * from user\n"
3        pipe = pipe "  where Name = 'O\\'Donell'\n"
4        pipe = pipe "EOF\n"
5
6        while ((pipe | getline) > 0)
7                print
8
9        exit 0
10}
11