I have two long lists of filenames, and I want to merge these two by excluding duplicated filenames in the sense of basename. For example, I have something like
../data_folderA/file_1 ../data_folderA/file_2 ... ../data_folderA/file_n
in list A and
../data_folderB/file_1 ../data_folderB/file_2 ../data_folderC/fffile_1 ../data_folderC/fffile_2 ... ../data_folderC/fffile_n
in list B. I want to exclude the duplicated file file_1 and file_2 in the merged list. Is there any quick way to do this?