u/Elpidiosus

Struggling with renaming (ren)

CLI noob here. Let me know if there's a better sub for this.

I have the following files...

File_January_2020.pdf

File_January_2021.pdf

File_February_2020.pdf

File_February_2021.pdf

I want to end up with

File_2020-01.pdf

File_2021-01.pdf

File_2020-02.pdf

File_2021-02.pdf

But I keep jacking it up. For example, attempts have resulted in "File_-04il_2020.pdf" and "File_April_2020.pdf-04" when trying to rename the April files.

I'd like to do this in one batch file.

Again, apologies if I'm in the wrong place for this question

reddit.com
u/Elpidiosus — 3 days ago