I would like to be able to split an authorization code by the -
character so that I can operate on each segment individually. I do not want to use external binaries (awk
, grep
) - this is to be as minimalistic as possible. What are some ways I can achieve this?
Here is an example auth code:
82a8-bd7d-986d-9dc9-41f5-fc02-2c20-3175-097a-c1eb