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

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

tomcat catalina coyote jasper cluster

list services on startup | initctl list | service --status-all | systemctl list-unit-files --type=service