home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sys5.r4
- Path: sparky!uunet!gatech!destroyer!mudos!mju
- From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
- Subject: Re: What is lacking in UNIX? (Re: UNIVEL MUST BE KIDDING!!!!!)
- Message-ID: <BzsoHx.85u@mudos.ann-arbor.mi.us>
- Date: Fri, 25 Dec 1992 03:03:33 GMT
- References: <id.0R2W.M24@ferranti.com> <Bzqv2E.Ln8@mudos.ann-arbor.mi.us> <sheldon.725236041@pv141b.vincent.iastate.edu>
- Organization: The Programmer's Pit Stop, Ann Arbor MI
- Lines: 81
-
- In article <sheldon.725236041@pv141b.vincent.iastate.edu> sheldon@iastate.edu (Steve Sheldon) writes:
- > del c:\command.com
- >
- > Insert the appropriate "Oh %*^(, why'd I do that?"
- >
- > And which point you type:
- >
- > undelete c:\command.com
- >
- > And off we go again...
-
- del c:\command.com
-
- Wait several hours while you use the machine heavily, creating and
- removing files.
-
- Then try to undelete command.com. Or, just reboot the computer
- between the time you remove it and the time you restore it. At least
- Unix can boot an alternate kernel if you really want to.
-
- Oh, fine, if you insist.
-
- $ rm() {
- for i in $*; do
- mv $i `dirname $i`/._deleted_.`basename $i`
- done
- }
- $ unrm() {
- for i in $*; do
- rmname=`dirname $i`/._deleted_.`basename $i`
- if [ -f $rmname ]; then
- mv $rmname $i
- else
- echo "Sorry, $i cannot be restored."
- fi
- done
- }
- $ rm_i_really_mean_it_do_it_now() {
- for i in $*; do
- echo "Are you really sure you want to remove $i? \c"
- read ans
- case $ans in
- [yY]*) ;;
- *) exit ;;
- esac
- echo "Really? \c"
- read ans
- case $ans in
- Yes) ;;
- *) exit ;;
- esac
- echo "\
- You're really sure about this, then. Well, okay, but I'll wait 10\n\
- seconds before I actually do it to give you a chance to change your\n\
- mind. Sleeping..."
- sleep 15 # give 'em a little extra margin
- rm $i
- done
- }
- $ rm /vmunix
- [insert appropriate #@$!% comments]
- $ unrm /vmunix
- $ ls /vmunix
- /vmunix
- $ rm_i_really_mean_it_do_it_now /vmunix
- Are you really sure you want to remove /vmunix? y
- Really? Yes
- You're really sure about this, then. Well, okay, but I'll wait 10
- seconds before I actually do it to give you a chance to change your
- mind. Sleeping...
- [15 seconds later...]
- $ unrm /vmunix
- $ ls /vmunix
- /vmunix
- $
-
- --
- Marc Unangst, N8VRH | "Of course, in order to understand this you
- mju@mudos.ann-arbor.mi.us | have to remember that the nucleus of the atom
- | is squishy."
- | -W. Scheider, from a Physics lecture
-