#!/bin/bash # # Syntax: rme [-h] # # Purpose: Removes all temporary files created by emacs from the current # directory. More specifically, removes *~, #*# and .saves-*~ # files. # The -h flag shows the help info for this command. # Created: Nov 6, 1997 by Bart De Schutter # Last revised: Jan 22, 2002 by Bart De Schutter # # See http://www.deschutter.info/util/scripts.html for the latest version of # this script. # Status: public # Category: emacs if [ $# -ge 1 -a "$1" = "-h" ]; then sed '/^$/q;/^#!/d;s/^# //;s/^#//' $0 >&2 exit 1 fi \rm .saves-*~ .\#* *~ \#*\# 2>/dev/null