[NTLUG:Discuss] Removing lots of Files - help.
Victor Brilon
victor at vail.net
Mon Apr 7 15:32:22 CDT 2003
This is about 100% off topic but since we're heading down this path....
If the ~ files are being created by emacs/xemacs and you don't want
those files all over the place, put something like this into your .emacs
file:
(setq auto-save-directory (expand-file-name "/tmp/autosave/")
auto-save-directory-fallback auto-save-directory
auto-save-hash-p nil
auto-save-interval 2000
)
(require 'auto-save)
(setq bkup-backup-directory-info
'((t "/tmp/autosave" ok-create full-path)))
This will put all of your ~ files into /tmp/autosave and not litter the
filesystem with them. Not only that it will autosave your files at
standard intervals so you always have backup copies.
Victor
Greg Edwards wrote:
> Bobby Sanders wrote:
>
>> I want to remove all of the files on my system which end in tilde, ~.
>> I'm running bash, know this should be easy, have read lots of
>> Cameron's book, which I love, but can't put my finger on this.
>>
>> Help please. Thanks.
>>
>> Bobby Sanders
>>
>
> Here's 2 aliases I use. These get both normal and hidden files.
>
> alias clrbak='rm -f *~;rm -f .*~'
>
> alias clrallbak='find . -name "*~" -exec rm -f "{}" ";"; find . -name
> ".*~" -exec rm -f "{}" ";"'
>
More information about the Discuss
mailing list