Suppose I have two lists of strings (list A and list B) with the exact same number of entries, N, in each list, and I want to replace all occurrences of the the nth element
you can do this in bash. Get your lists into arrays.
bash
listA=(a b c) listB=(d e f) data=$(