From: Dan Espen <despen@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: deleting backup files dependant on their age
Date: Mon, 23 Nov 2015 23:46:50 -0500 [thread overview]
Message-ID: <n30pvc$ai$1@dont-email.me> (raw)
In-Reply-To: mailman.585.1448326084.31583.help-gnu-emacs@gnu.org
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
next prev parent reply other threads:[~2015-11-24 4:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 19:46 deleting backup files dependant on their age Sharon Kimble
2015-11-23 20:14 ` Eli Zaretskii
2015-11-24 0:01 ` Emanuel Berg
2015-11-24 0:58 ` Emanuel Berg
[not found] ` <mailman.585.1448326084.31583.help-gnu-emacs@gnu.org>
2015-11-24 4:46 ` Dan Espen [this message]
2015-11-25 1:26 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='n30pvc$ai$1@dont-email.me' \
--to=despen@verizon.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.