Mvbackupfiles - a script to "delete" back autosaved backup files

24 November 2005   1 comment   Linux

Powered by Fusion×

Last month I complained about how brutal the rm program in Linux was and how I cocked things up when I wanted to remove the autosaved backup files that jed creates. Here's the solution...

I created a script in ~/bin/Mvbackupfiles that looks like this:

mv -v *~ /tmp

Now, whenever I want to clear a directory of all files like or README.txt~, I just run Mvbackupfiles and I become a much happier and tidier person.

Here's what it can look like:

peterbe@trillian:~/dev/signature_hider $ ls
index.html  index.html~
peterbe@trillian:~/dev/signature_hider $ Mvbackupfiles 
`index.html~' -> `/tmp/index.html~'
peterbe@trillian:~/dev/signature_hider $ ls


Sascha Welter
Isn't there a setting to put those backup files into /tmp in the first place?

Your email will never ever be published

Related posts

createElement('a') with a javascript href 21 November 2005
Islington Knuckle Walk 24 November 2005
Related by keywords:
Local jed settings 19 April 2013
Wing IDE versus Jed 11 December 2008
Gmail shortcuts 26 April 2005
Heil Jed and Dave Kuhlman 09 May 2004
Jed Tags with ntags (for dummies) 11 February 2006
Make your settings in .Xdefaults come true 16 November 2004
Furious and deprived by 'rm *' 15 October 2005
File check before delete 07 March 2008
Geeking with tags file for Jed 29 May 2006
Jed looking like Emacs 28 September 2005
Keybinding ALT-F in Jed 27 January 2004
Geeking with Eterm and Tkinter 09 February 2006