home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!easix!bc3!ktf
- From: ktf@bc3.GUN.de (Klaus ter Fehn)
- Subject: Re: Undelete
- Organization: private
- Date: Fri, 8 Jan 1993 01:25:07 GMT
- Message-ID: <C0IH9w.454@bc3.GUN.de>
- References: <6JAN199301064871@elroy.uh.edu>
- Lines: 28
-
- In article <6JAN199301064871@elroy.uh.edu> st1y2@elroy.uh.edu (Gray, William W.) writes:
-
-
- >hehhehe, that was one of the first things I learned
- >when I moved to UNIX. UNIX o does not
- >have an "undelete" command. But what you can do is write a script file simler to h this and call it del
-
-
- >cp %1 /delete/%1
- >rm %1
- well, if using Bourne or Korn-Shell, I would prefer $1 instead of %1
-
- >this should copy the file to /delete and then
- >rm r the file. Once a week or so you go to /delete
- >and carefuly type rm -r *, AND I MEAN CAREFULLY!
-
- I'd prefer a crontab-entry in the night:
-
- find /delete -type f -atime +7 -exec rm -f {} \;
-
- that would delete any file beyond /delete, which was not accessed in the
- last 7 days.
-
- --
- Klaus ter Fehn <ktf@bc3.GUN.de>
- Neanderstr. 4 {mcshh,smurf,unido}!easix!bc3!ktf
- 4000 Duesseldorf 1
- FRG / Germany Tel.: +49-211-676331
-