I thought to resurrect the old thread but decided a new one might be best.
This time it appears to be a very simple problem. An example is the easiest way to explain .......
I had to rewrite this .... apologies .......
I have a variable which consists of a string of letters and allowed others like */-| and so on, followed by numbers. All the one string.
So it might be something like aj&;?/jg12
The only part of the string that can be numerical are the last digit or two.
The length of the string is not fixed.
The only certainty is that there will be a number or two numbers at the end of the string.
I wish to discard the numbers ..... whether it is one or two.
I hope that explains things better.
Thanks for the support with my familiarising myself with some Bash commands.