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.??
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..