Uses awk instead of cut to parse argument