Bash Environment Variable Regex Replace

- 1 min read

HOST=tcp://server:443/
echo ${HOST//tcp/https} # prints https://server:443/