How to get only filename from find command in Linux?

How to get only filename from find command in Linux?

Normally find command will retrieve the filename and its path as one string. If you want to display only the filename, you can use basename command.

 

find {file_path} -type f -iname {file_pattern}  -exec basename {} ;

find infa/bdm/server/source/path -type f -iname "source_fname_*.txt" -exec basename {} ;

 

Shell command to find the latest file name in the command task!
 

Search tags!
How do I return only file names from the find command?
How to get only filename from find command in Linux?
How to only get file names with Linux ‘find’?