[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unix command(s) to remove files recursively?



Ahoj,

Dňa Tue, 05 Jun 2012 06:54:29 -0400 rbmj <rbmj@verizon.net> napísal:

> find -name '*~' | xargs rm

very bad idea, if the file name has spaces…

Try:

find . -name '*~' -print0 | xargs -0 rm

replace the '.' by your paths..., you can add the '-f' option to rm, to
avoid error messages, if something will be wrong (directory with name '*~'
and '*~' files in it)

-- 
Slavko
http://slavino.sk

Attachment: signature.asc
Description: PGP signature


Reply to: