find -name command finds the wrong files
Hi
When I'm running this command. find -name '*.zip' I want to found zip files in the current directory, but for some reasons 'find' searches in subdirectory. How do I make it to search in just the current directory? |
Use the -maxdepth option.
Code:
find -maxdepth 1 -name '*.zip' |
For the current directory why not just use
ls -d *.zip |
All times are GMT -5. The time now is 12:02 PM. |