Use cut instead of awk because it's more portable across Linux/OSX/Solaris.