jik@athena.mit.edu (Jonathan I. Kamens) (02/13/91)
In article <JC.91Feb12005521@raven.bu.edu>, jc@raven.bu.edu (James Cameron) writes: |> alias rm 'mv \!$ /tmp/\!$' |> alias rec 'mv /tmp/\!$ .' |> |> Yes, this is a serious kludge, but it does work. When a lot of "rm'ing" is necessary |> it does what you want...saves-your-butt. Or use my suite of file deletion and recovery programs (delete, undelete, lsdel, expunge and purge) available at a comp.sources.unix archive site near you as "undel2" (you also need the package called "et"). Among other things, delete has the ability to emulate rm and rmdir (parsing all command line arguments, doing recursion, etc.). Sure, you can do it all in a shell script, or even in a perl script. But I've already done it in C, and my suspicion is that it's going to be faster in C :-). -- Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710