Re [Gllug] rm -R not working on Fedora

Benedikt Heinen gllug at ml.icemark.net
Sat Feb 12 00:08:47 UTC 2005


>> 	find * -type f -name  "*.php.bak" | xargs rm
>>
>> Note, you shouldn't use the latter if you have files/directories with
>> spaces in their names, because rm will take the individual parts
>> seperately
>
> Easily cured with:
>
> 	find . -type f -name "*.php.bak" -print0 | xargs -0 /bin/rm -f
>
> You should always use that form anyway, just in case someone's added a
> filename or directory containing a space and you don't know about it.

*smile* That's what I love about unix boxes - you use them for 15 odd 
years, and there's still so much useful stuff you hadn't seen yet... ;-)

I shall (try and) remember it for the next time I need it... ;-)




   Benedikt

--
 	It seems I think I am, therefore it seems I am, I think!
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list