Find files older than 20 days & not use find

I need to find files that have the ending of .out and that are older than 20 days. However, I cannot use find as I do not want to search in the directories that are underneath the directory that I am searching in.

How can this be done?? Find returns files that I do not want.

You can still use the find command. This question has been asked many times on the unix.com board. Look here for an answer. Make sure to browse through the Frequently Asked Questions section. You'll learn a whole lot of useful information.

I thank you both. I've learned something new today. I've been using sed all these years to filter out the unwanted subdirectories.