How can I replace a specific character in one string, with a specific character from another string? | s1=${s1:0:2}${s2:3}${s1:3}

ubu1404@ubuntu1404lb01:~$ s1="abcd"
ubu1404@ubuntu1404lb01:~$ s2="xwyz"
ubu1404@ubuntu1404lb01:~$ s1=${s1:0:2}${s2:3}${s1:3}

ubu1404@ubuntu1404lb01:~$ echo $s1
abzd

Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

15 managing disk - understanding /etc/fstab xfs_admin mount -o rw,remount /