Mobile version of this page
Previous:
createElement('a') with a javascript href
Next:
Islington Knuckle Walk
Dabbrev in Jed
Grep in Jed
Geeking with tags file for Jed
Jed Tags with ntags (for dummies)
Geeking with Eterm and Tkinter
Jed looking like Emacs
Heil Jed and Dave Kuhlman
File check before delete
Furious and deprived by 'rm *'
Make your settings in .Xdefaults come true
Gmail shortcuts
createElement('a') with a javascript href
Next:
Islington Knuckle Walk
Related blogs
Keybinding ALT-F in JedDabbrev in Jed
Grep in Jed
Geeking with tags file for Jed
Jed Tags with ntags (for dummies)
Geeking with Eterm and Tkinter
Jed looking like Emacs
Heil Jed and Dave Kuhlman
File check before delete
Furious and deprived by 'rm *'
Make your settings in .Xdefaults come true
Gmail shortcuts
Related by category
Mvbackupfiles - a script to "delete" back autosaved backup files
rm, backup files, mvbackupfiles, jed
24th of November 2005
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:
#!/bin/sh mv -v *~ /tmp
Now, whenever I want to clear a directory of all files like dummy.py~ 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 index.html







Save this page in del.icio.us
Isn't there a setting to put those backup files into /tmp in the first place?