I have a lot of data with file names like this:
combination.2005.0801.txt
combination.2005.0802.txt
...
combination.2005.0830. txt
What should I do if I want to rename that files to be like this?
20100801.txt
20100802.txt
...
20100803.txt
I already tried to use the following script, but unfortunately the script is not working.
rename 's/combination.(.*).(.*).txt/$1.txt/' *.txt