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