CHG: OS X compat, awk instead of cut