Hello,
I have one file in a path that contains a string like 12:34:56, like a hhmmss format.
I need only the first four digits, i use a substring and obtain 12:34, but a need delete the ":" and get "1234" for use like a statistic.
I have this:
1- The path with 12:34:56
2- the substr to get 12:34

i try with
replace="${substring//:}", but i get the follow error:

thanks for your help.