Given a list/array of strings (in particular, UNIX paths), remove the shared part, eg:
- ./dir/fileA_header.txt
- ./dir/fileA_footer.txt
I probably will strip the directory before using the function, but strictly speacking this won't change much.
I'd like to know a method to either remove the shared parts (./dir/fileA_) or remove the not-shared part.
Thank you for your help!