I fairly new to bash programming - sorry if my terminology is incorrect
I have two lists stored as strings
echo [$LISTA]
["a1ex","oliver","maggie","walter","ben"]
echo $LISTB
[ "a1ex", "oliver", "ben"]
I want to get all items in LISTA that is not in LISTB
"maggie", "walter"
I found this other SO post that compares the two arrays in bash. I can do it that way but I just have to transform my strings to arrays. I am wondering is there a way to do it without transforming the strings to array?