cosmetics

use awk instead of grep+awk
Merge pull request #1 from glensc/patch-1

cosmetics