I have two commas separate variables like below. on a certain condition, I need to merge two variables into a single. Bit confused and unsure if is it possible in bash
Input
SBI=abc,def,ijk
MEM=one,two,three
Expected output
OUT=abc_one,def_two,ijk_three