I have a folder containing a number of files with the following filename structure:
John Doe - title.pdf John Doe - title2.pdf John Doe - title3.pdf Jane Smith - some title.pdf Jane Smith - second title.pdf
I wish to combine the pdfs starting with the same two words as part of their filename to get the following:
John Doe.pdf Jane Smith.pdf
How would I go about it in Linux using a script and any of the tools available under Linux?