Replace "grep awk awk" with something more civilised

Optimisations R Us.
Merge pull request #1 from unixben/master

Replace "grep awk awk" with something more civilised