This patch removes grep from passing data to awk via a pipe in favor of using awk's // (constant regular expression search) functionality.
Example:
Bad:
`mount | grep zfs | awk '{ print $3 }'`
Better (saving one pipe):
`mount | awk '/zfs/ { print $3 }'`
This occurs in a bunch of places, so I changed most of them. Others, where more complicated filters are used or negation is involved, I left out. This could be done in another pass.
I'm sure how much this brings in terms of performance (possibly negligible). I think it aids readability, especially when there is a long chain of such pipes.