Replace awk pipe with stdin redirect[1].

[1] Thanks to Riviera in #bash on freenode for this.
Silence grep! I kill you![1]

[1] Thanks to Riviera from #bash on freenode for catching this. It was
driving me crazy.
Remove redundant line count.
Add shebang awareness to other functions...
Add new test case to t/Makefile's clean target.
Fix test case.

Move shebang to top (that was a cat oversight) and remove redundant
newline.