Sorry, I'll explain it better
How can I get the last number from string?
Examples of generics strings:
If str=str1s2
echo $str | cmd?
I get 2
If str=234ef85
echo $str | cmd?
I get 85
If str=djfs1d2.3
echo $str | cmd?
I get 3
"cmd?" is the command/script that I want