List files older that 7 days in a dir, excluding all subdirs

view full story

http://www.unix.com – Hi, I would like to list all files, older than 7 days, in a directory, but exclude all subdirectories in the find command. If I use find . -type f -mtime +7 all files in the subdirs are also included. How can I exclude them? Regards, JW (HowTos)