I have a directory of files such as:file.1111111_1.pdffile.1111111_2.pdffile.2222222_1.pdffile.2222222_2.pdffile.1234567_1.pdffile.1234567_2.pdffile.aaaaaaa_1.pdffile.aaaaaaa_2.pdffile.abcdefg_1.pdffile.abcdefg_2.pdfHow can I merge the first 7digit same file name to new file in same directory or subdirectory, It should end up like this:file.1111111.pdffile.2222222.pdffile.1234567.pdffile.aaaaaaa.pdffile.abcdefg.pdf
Shell script to merge files with same names
shell script;files;pdf