I want to extract substring till the point the last numeric ends.
for example:
In the string "abcd123z" , I want the output to be "abcd123"
In the string "abcdef123gh01yz" , I want the output to be "abcdef123gh01"
In the string "abcd123" , I want the output to be "abcd123"
How to do this in the unix shell?