I have several files with these names:
file1, A.ext file1, The.ext
I need to change there names as
A file1.ext The file1.ext
That is I need to move the article from the end to the beginning erasing the comma. How would I do that?
I have looked into rename command but I have no experience with perl regex, I came up with this ridiculous command which doesn't work, I'm leaving it for showing my hopelessness:
rename 's/(?<=[A-Z a-z \s]*),\sA//' *