From: Massimiliano M. <ne...@in...> - 2008-10-23 16:16:38
|
Pisvi Adam Goryachev! On Fri, Oct 24, 2008 at 02:15:55AM +1100 you wrote: > Or you could do it like this (approx) > #!/bin/bash > find /archives/ -type f -exec rm -f {} > (I never seem to get my find -exec commands to work properly, but it > should work if you get the parameters right. Maybe because you forget to add \; at the end... :P Another good way is find /archives -type f -print0 | xargs -0 rm This ways xargs will cope also with files which have space chars in their name. -- Massimiliano Masserelli ------------------------------------------------------------------------------- La realta' e' solo una conveniente misura di complessita'. -- Alvy Ray Smith |