Path: utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!hplabs!hpda!hpcuhb!hpindda!burdick From: burdick@hpindda.HP.COM (Matt Burdick) Newsgroups: comp.unix.questions Subject: Creating a nondestructive 'rm' Message-ID: <4460006@hpindda.HP.COM> Date: 3 Nov 88 18:13:07 GMT Organization: HP Information Networks, Cupertino, CA Lines: 12 Does anyone have a nice alias or shell script so that when I 'rm' a file it will actually move it to, for instance, a tmp subdirectory in my home directory? Right now, I have an alias that does this, but the problem is that may alias doesn't handle all of rm's flags. For instance, it complains if I type in 'rm -rf *', since 'mv' doesn't have the -r flag and also can't move across file partitions. -- Matt Burdick | Hewlett-Packard burdick%hpda@hplabs.hp.com | Technical Communications Lab