Insert characters Into a string in bash? September 26, 2023 by Tarik time=125959 echo "${time:0:2}":"${time:2:2}":"${time:4:2}"