I need to extract sub-strings and set them as new strings without using echo
.
My original variable is delimited by commas, so I have that going for me, but I can't use echo
so I don't think I can use cut
.
I think I need to use the method shown here but I'm not quite getting it
myvar="1,2,3,4,5,6"
I think it's something along the lines of:
one=${myvar%%,}
two=${myvar}