I am trying to rename multiple files in windows using powershell.
And I want to rename replacing this pattern:
“123456-the_other_part_of_the_string”.
Example:
409873-doc1.txt
378234-doc2.txt
1230-doc3.txt
Basically I want to crop the numbers + ‘-‘ thing.
or with aliases: