Where's the data stored? In a file? In a string variable? IFS may be part of the answer — or fancy options to read. Or you can use cut, awk, sed, perl, python, … or shell parameter expansion with the substitute variations.
Ahh -- stackoverflow.com/questions/38927646/… -- very slightly different question about the same data (and data format), but my answer there does describe how to perform the exact operation requested here.
read. Or you can usecut,awk,sed,perl,python, … or shell parameter expansion with the substitute variations.