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

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all