On Tue, Jun 05, 2012 at 12:01 +0100, rjc wrote: > > Suppose that I have, in a certain directory and all its subdirs and subdirs' > > subdirs' subdirs... etc., a certain number of files terminating with `~', e.g.: > > `myfile~', and that I want to remove all of them recursively. Is there a Unix > > command to do that right away? > > find top_dir_name -type f -name "*~" -exec rm '{}' \; No need for -exec rm here ... You can just use -delete (please read the manpage!). I'll just point people to http://mywiki.wooledge.org/UsingFind -- Wolodja <babilen@gmail.com> 4096R/CAF14EFC 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC
Attachment:
signature.asc
Description: Digital signature