I want to rename only .csv
files which do not conform to name format guidelines. All other files with incorrect numbers are ok.
correct:
31_12_99-01.csv
01_01_00-88.csv
incorrect:
2_1_00-01.csv
I need help to identify numbers smaller than 10 (only one digit).
Get-ChildItem *.csv -Name |Where{$_.Name -match '\d+'}
After rename powershell should show all renamed files(new file name) so I can choose to save this list to rename.cfg
.