This question already has an answer here:
- How can I rename many files at once? 15 answers
I downloaded some files with youtube-dl. The name is always like this
foo - baar -PSUHDUWHDAIHDWU.ogg/mp3/...
How can I remove this random letters (cut the last '-*') at the end from all files of a folder so that the name is:
foo - baar.mp3/ogg/...
I tried something with "rename" but I have no idead, what pattern to use. I think it should be something like this: "#-*"