I got a lot of files whose names are like this:
tmp1.csv
tmp32.csv
tmp9.csv
tmp76.csv
...
They are in the same dir, and I want to extract the numbers in the file name. How can I do that in bash?
PS
I tried grep, but can’t make it. Also I tried ${filename##[a-z]}. Are they the right way to go?
If you have other csv file with digits in their filenames use: