I have a list of files (thousands of them) like this:
/path/2010 - filename.txt /path/2011 - another file name.txt Always following this pattern: #### - string.txt
I need to change them to look like this:
/path/filename (2010).txt /path/another file name (2011).txt How can I do this quickly with bash, shell, terminal, etc.?