For example: I have string1 = 'abcd', and string2 = 'xwyz'.I want to replace the 3rd character of string1 ('c') with the 4th character of string2 ('z').Of course, string indexing starts from 0.How can I accomplish this?
How can I replace a specific character in one string, with a specific character from another string?
bash;command line