I am working in linux bash. I have a filename which is captured by a script into this var ($filename). The filename is something like this: release-10.20.30.tar.xz
I want to be able to capture the numeric part, into a VAR. This is: 10.20.30
How can I do that?