Forgive me for being a pedantic jerk, I really only say this for a fuller understanding of Unix tools. But if all you care about is a count of the number of matches that grep finds, you can simply use the -c flag of grep instead of piping the output to wc.
$ pdftk GBA.pdf output - uncompress | grep -c ' re$'
See also: UUOC "wc -l" section.
In reply to Re^2: Finding Rectangles in PDFs
by jffry
in thread Finding Rectangles in PDFs
by binarybits
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |