I am a novice in shell scripting. I need to split this following file structure as filename separate and folder path separate. In the filename, I don't need _ABF1_6, as it is not part of the filename. Also this _ABF1_6 changes from file path to path and is not the same for all filepaths. So this needs to be considered as regular expression..beginning with _ABF1. Please help!!
Sample filepath:
/EBF/DirectiveFiles/data_report_PD_import_script_ABF1_6
Output required:
Folder path: /EBF/DirectiveFiles/
Filename: data_report_PD_import_script