1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| $ mkdir -p /tmp/test/level1dir{1..10}/level2dir{1..10}/level3dir{1..10} $ touch /tmp/test/{file{1..10},level1dir{1..10}/{file{1..10},level2dir{1..10}/{file{1..10},level3dir{1..10}/file{1..10}}}} $ cd /tmp/test
$ find -maxdepth 2 -name file1 ./level1dir1/file1 ./level1dir2/file1 ./level1dir3/file1 ./level1dir4/file1 ./level1dir5/file1 ./level1dir6/file1 ./level1dir7/file1 ./level1dir8/file1 ./level1dir9/file1 ./level1dir10/file1 ./file1
$ find -mindepth 2 -maxdepth 2 -name file1 ./level1dir1/file1 ./level1dir2/file1 ./level1dir3/file1 ./level1dir4/file1 ./level1dir5/file1 ./level1dir6/file1 ./level1dir7/file1 ./level1dir8/file1 ./level1dir9/file1 ./level1dir10/file1
|