Hi Frnds,
I have to list the files which are older than 7 days in the given directory.
it should consider only the files and should not show subdirectories.
Thanks,
Raja
Hi Frnds,
I have to list the files which are older than 7 days in the given directory.
it should consider only the files and should not show subdirectories.
Thanks,
Raja
check out -depth and -maxdepth option in find
find . -maxdepth 1 -type f ....
try..
find directory/. \( -name . -o -prune \) -type f -mtime -7
its working... Thank You.