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:

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments