I've been trying out several methods from SU but I have been unable to do this: I got a folder (example: /var/www/tmp/) which contains several files and directories. I'd like to delete all the files and folders in this directory except for the hidden files that reside in /var/www/tmp, how can I do that?
Thanks!
edit: to be clear, i'd like to use this in a cronjob