From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: deleting backup files dependant on their age Date: Mon, 23 Nov 2015 23:46:50 -0500 Organization: A noiseless patient Spider Message-ID: References: <874mgcebxk.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448340620 28426 80.91.229.3 (24 Nov 2015 04:50:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 04:50:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 24 05:50:18 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a15YX-00019P-Eo for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Nov 2015 05:50:17 +0100 Original-Received: from localhost ([::1]:36052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a15YY-0005Re-C0 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 23:50:18 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Injection-Info: mx02.eternal-september.org; posting-host="48ddaff5c9d3fd7512a0d6243d6519a4"; logging-data="338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1962dm0lTTBjUMMQS9N6kkC1BMqNxWWCgU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:IsHiyK6QvXcI16Y8GTGZLIYtGLo= Original-Xref: usenet.stanford.edu gnu.emacs.help:215921 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108209 Archived-At: Emanuel Berg 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