On Monday 13 August 2007 11:26 am, Stephen Gran wrote: >... > How many unix admins does it take to not notice that rm has a recursive > option?
That is fine, if you want to remove the directory, not just the contents of it. You could remove the directory and then re-create it though. If you want to just remove files, then the find option works well, although you don't need xargs if you use find, except for performance issues: find . -type f -exec rm {} \; -- Ken Sandberg. California Lutheran University Information Systems and Services 60 West Olsen Road Thousand Oaks, CA 91360 805-493-3431 _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html