A better way to parse grid output in your shell