Hi Ruben, Shlomi just told me how to find history tmp files that are no longer needed. At the beginning I want to remove these tmp files if the original one no longer exists. But Shlomi's solution might be better: he suggested removing a file only if it has not been modified for some time.
It's my fault, it's actually not a vim-relevant question. I think it's more like a scripting problem to me. sorry for that. Best Regards, Linus Boyle Ruben Safir <[email protected]> 于2018年12月2日周日 上午6:40写道: > how did it help you. You asked about history tmp files and the response > was completely irrelevant. Clue the rest of us in? > > > On 12/1/18 8:41 AM, Linus Boyle wrote: > > Thank you, Shlomi. This helps me a lot. > > > > Shlomi Fish <[email protected]> 于2018年12月1日周六 下午7:24写道: > > > >> Hi Linus, > >> > >> On Sat, 1 Dec 2018 18:56:47 +0800 > >> Linus Boyle <[email protected]> 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 <[email protected]> 于2018年12月1日周六 下午5:58写道: > >>> > >>>> Hi Linus! > >>>> > >>>> On Fri, 30 Nov 2018 23:41:24 -0800 (PST) > >>>> Linus Boyle <[email protected]> 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 [email protected]. > >>>> 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 [email protected]. > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > > -- > So many immigrant groups have swept through our town > that Brooklyn, like Atlantis, reaches mythological > proportions in the mind of the world - RI Safir 1998 > http://www.mrbrklyn.com > > DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 > http://www.nylxs.com - Leadership Development in Free Software > http://www2.mrbrklyn.com/resources - Unpublished Archive > http://www.coinhangout.com - coins! > http://www.brooklyn-living.com > > Being so tracked is for FARM ANIMALS and and extermination camps, > but incompatible with living as a free human being. -RI Safir 2013 > > -- > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
