Exclude directories when searching for files
When searching for a specific file in a directory, I use:
find /usr/test/files/ -iname "mytest*" -print0
This returns all "mytest" files from the specified directory. Unfortunatly, if a "mytest" file exists in a subdirectry, say "/usr/test/files/archive/", then this file is also returned. How can I exclude specific subdirectories from the search directory list? I basically only want to search in one directory, even if subdirectories exists. Also, when the files are returned, they are shown with the full path and file name. How do I get them shown with the name only?