hey this is my first post here and i am desperately looking for some help! Im trying to write a shell script for the first time and ive run into some issues.
Im writing a script that takes two strings as parameters, im then using sed to do replacements of the first string over the second string for given files.
eg sed "sl/$1/$2/g" "$file"
so this works fine and replaces the whole string with the whole string, now i need to work char by char. So given inputs of $1=abcd $2=ABCD, i need sed to replace all instances of a with A, b with B, c with C etc. Ive tried a few things already, and the way i was attempting was calling sed -e for each char, this is obviously a horrid way of doing it :P
Im not a programming noob by any stretch of the word but this is giving me real issues

Any help would be appreciated, thanks.
Recent comments
20 hours 18 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 1 hour ago
2 days 3 hours ago