How to ignore '.' files

I'm running Fedora Core 6 as an FTP server on a powerMac G4...

I'm trying to create a script to remove files older than 3 days...
I'm able to find all data older than 3 days but it finds hidden files such as
/home/ftp/goossens/.canna
/home/ftp/goossens/.kde
/home/ftp/goossens/.kde/Autostart/.directory
/home/ftp/goossens/.kde/Autostart/Autorun.desktop

Any ideas how I can find just FTP data?:eek::eek:

Use zsh:

rm -- /home/ftp/**/*(.m+3)

Thanks for this... Would you mind explaining the syntax?

Also, if a folder inside /home/ftp becomes older than 3 days, what's stopping it from being deleted? I ask this as all the top level directories within /home/ftp need to remain.

** matches a path consisting of zero or more directories.
. in (.m+3) matches plain files (NOT directories, nor dotfiles).
m is the file modification time, 3 is the number of days.

For more info: man zshexpn.

What "finds hidden files"? If you have attemtped a script, you should post it.

## set DIR to the directory you want to search
find "$DIR" ! -name '.*' -mtime +3 -exec rm {} \;

What do you mean by "FTP data"?