Find files inside the parent directory only

Hi All,

The following find command lists the files which are 45 minutes older. But it searches for the sub directories also.

[tuxidow@nus ~]$ find . -type f -mmin +45 -print
./hello.txt
./test/hi.txt
./temp/now.txt
[tuxidow@nus ~] ls
hello.txt test temp

How can i modify the find command in such way that it finds only the files inside the parent directory (ie in this case only "hello.txt") not on its sub directories.??

find . -maxdepth 1 -type f -mmin +45 -print

Thanks,

How to find files inside the sub directories that too not inside the sub directory of that particular sub directory.

here in this case find files of only "test" and "temp" and not the files of their parent directory and also not the files of their sub directories if any..

Hopefully I'm understanding you correctly. Your first sentence made my mind go in a loop.

find . -maxdepth 1 -type f -name test -o -name temp
find . -maxdepth 2  -mindepth 2 -type f -mmin +2