Saturday, December 1, 2018

Re: How to auto delete removed file's undo/backup ?

Thank you, Shlomi. This helps me a lot.

Shlomi Fish <shlomif@shlomifish.org> 于2018年12月1日周六 下午7:24写道:
Hi Linus,

On Sat, 1 Dec 2018 18:56:47 +0800
Linus Boyle <linusboyle@gmail.com> wrote:

> Hi Shlomi,
>
> thx for your humour, lol. I use GNU/linux, and maybe bash script can handle
> this quite well.
>
> I'm just wondering if I can achieve my goal easily, before I get my hand
> dirty to write the script.
>

see
https://unix.stackexchange.com/questions/92346/why-does-find-mtime-1-only-return-files-older-than-2-days
and -print0 and https://en.wikipedia.org/wiki/Xargs -0.


> Shlomi Fish <shlomif@shlomifish.org> 于2018年12月1日周六 下午5:58写道:
>
> > Hi Linus!
> >
> > On Fri, 30 Nov 2018 23:41:24 -0800 (PST)
> > Linus Boyle <linusboyle@gmail.com> wrote:
> > 
> > > Hello all,
> > >
> > > I have setting in my .vimrc to put all the undo/backup in a specific 
> > folder. 
> > > And now it has taken up too much space(around a hundred megabytes, say). 
> > Many 
> > > files are no longer needed because the original file has been removed. 
> > I'm 
> > > not good at scripting and all I come up with is to parse the filename and
> > > test its existence. So I'm wondering if there're easy ways to clean them 
> > up. 
> > > any suggestion is welcome
> > > 
> >
> > what is your OS and preferred scripting language / environment? See
> > https://www.quotes.net/quote/34583
> > > Best Regards,
> > > Linus Boyle
> > > 
> >
> >
> >
> > --
> > -----------------------------------------------------------------
> > Shlomi Fish       http://www.shlomifish.org/
> > What does "Zionism" mean? - http://shlom.in/def-zionism
> >
> > In the beginning the Universe was created. This has made a lot of people
> > very
> > angry and been widely regarded as a bad move.
> >     — https://en.wikiquote.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy
> >
> > Please reply to list if it's a mailing list post - http://shlom.in/reply .
> >
> > --
> > --
> > You received this message from the "vim_use" maillist.
> > Do not top-post! Type your reply below the text you are replying to.
> > For more information, visit http://www.vim.org/maillist.php
> >
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "vim_use" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to vim_use+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> > 
>



--
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What does "Zionism" mean? - http://shlom.in/def-zionism

Hacker sees bug. Hacker does not want bug. Hacker fixes bug.
    — http://www.shlomifish.org/humour.html

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment