Find limit search depth
I wanted to find some files inside sub directory of current folder. To do this, find have maxdepth option.
1 |
find ./ -maxdepth 2 -name '*.gz' |
This command will limit search depth to current directory and all first level sub folders.
See find