I have a directory with multiple sub-directories that contain pdf files of job applicants. The files in each subdirectory are Lastname_cv.pdf, Lastname_letter.pdf, and other files that I don't need at this point. I want to combine all the pdfs that refer to applicants' cv and letter, in alphabetical order, with the cv of each applicant first, and the letter second. So, an example would be having two subdirectories A and B, where in A I have A_cv.pdf and A_letter.pdf; in B I have B_cv.pdf and B_letter.pdf. Is there a way in which I can combine all these files so that I get a single file All_documents.pdf that has the files just mentioned in the order A_cv, A_letter, B_cv, B_letter?
I'm using Ubuntu 18.04.
Thanks
Bookmarks