Browsed by
Month: February 2021

Bash – substitute substring in a string

Bash – substitute substring in a string

Today I came across interesting issue – how to remove part of the string containing slash. Full string:

The desired goal is to extract releases/10 from the string. Code:

And here we go: