I'm building a small script to automate something I do pretty regularly.
The script takes in a single parameter, for example: vendor/package
. I'd like to take that and split/explode it into two separate strings: vendor
and package
.
I've looked at solutions on here and various other places but can't get anything to work. I'm sure it's really simple but I'm not great at bash so some help would be greatly appreciated. Thanks!