My setup is as following:
folder structure
dir
|--correctfile1
|--correctfile2
|--correctfile3
|--subdir1
|--wrongfile1
|--wrongfile2
|--wrongfile3
|--subdir2
|--subdir3
I need to find out if there are files in dir
that are older than 3 minutes. This means I should ignore folders subdir1, subdir2 and subdir3
and only search in the main directory dir
I have following one-liner
find $dir -mmin +3 -type f
but this prints also the files from subdir1
Some extra info:
AIX 5.3
find command does not have -maxdepth
, -mindepth
, -or
, -not
or -path
options
The manpage: http://textuploader.com/oe0r