On Monday 11 March 2002 19:44, Mark Bigler wrote: > On Monday 11 March 2002 19:21, Rob Hudson wrote: > > You want to use 'find'. man find for all the details... > > > > find ./* -mtime +10 -maxdepth 0 > > For the current directory you would want to just use a . > > For example, I don't believe using ./* will match ".foo" in the > current directory (it might match it in a subdirectory though).
Excuse the comment on my own comment. I forgot to say that the "./*" is expanded by the shell before the find command sees it. However, the shell won't expand the . (dot). If you want to keep the shell from doing the expansion, be sure to either escape it or put it in quotes. Note: be sure check on the difference between single and double quotes first (one allows limited expansion by the shell). echo is your friend.
