On 2/10/24 07:56, Alan Mackenzie wrote:
> Hello, gentoo.
> 
> I was wanting to do a pretty full build of my Emacs working repository.
> This involved first purging al *.elc files.  The way to do this is
> 
>     $ find . -name '*.elc' | xargs rm
> 
> 
Just as an aside: find supports the `-delete` action already, preferable
to piping to `xargs rm` since it avoids accidents involving unusual
filenames.

Bonus: you can run `find something -print` first to verify what will be
deleted, then swap out `-print` for `-delete`.

Reply via email to