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 {} ;     Search tags! How do I […]

Read More