The Hillside Meditations Logo-JPEG



tar´ ed and feathered

Laura Lemay reports a problem she had when using “tar”-syntax in the wrong order: “tar cvf reference.doc images questions.doc stuff.doc files.tar” killed her reference.doc and did not creare files.tar, of course. Pity!
I have made the same mistake several times. Computer (not only Unix) commands are mighty, but used falsely can lead to disastrous results.
I followed Laura´ s hint to link “rm” to a more reversible script, just to deal with another potentially harmful command (with a little help from my IRC-friends schoos and logix).
/home/cnrenner/bin/rm:

#!/bin/bash
mv "$*" ~/trash/



Technorati Tags , , , , ,

RSS feed | Trackback URI

1 Comment »

Comment by woody
2005-04-26 22:12:38

really really clever solution

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.