var="hello world" var2=${var/world/earth} echo $var2