deleting files recursively, but not directories
Hi,
I'm dealing with this kind of problem.
I have a tree of many directories and subdirectories, and I wanto to make a script that delete all files existing in this tree, but not directories, so I can have my tree empty.
The problem is that if I use " rm -rf * " , the command deletes also directories, because with " -r * " it deletes also directories if empty, not only files.
Does anybody have a tip?
Thanks in advance
|