help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: deleting backup files dependant on their age


From: Dan Espen
Subject: Re: deleting backup files dependant on their age
Date: Mon, 23 Nov 2015 23:46:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> If you want to try find(1), I "found" this site [1],
> and if I modified it correctly for your purposes it
> should be:
>
>     find ~/.emacs.d/backups/.*~ -mtime +14 -exec rm {} \;
>
> Be careful with this command! Don't blame me if you
> wipe your disk. (Or you can blame me, but that won't
> get your files back.)
>
> [1] 
> http://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/

That doesn't work for me.

Try this:

find ~/.emacs.d/backups -name '*~' -mtime +14 -exec rm {} \;


-- 
Dan Espen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]