I would need to extract only last 2 part from the following directory path using shell command
"Android/2.1/Packages/test/debug/"
Expected out put: /test/debug
This path is the dynamic where it would change with different path value as such "Android/2/Pipeline/Packages/test/debug/"
I couldn't find the specific regular expression which can extract the last 2 part even rest of path value keeps change, ie only to get '/test/debug'
Appreciate if any one can help on this
Thanks