Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!edcastle!spider!raft.spider.co.uk!mark From: mark@spider.co.uk (Mark Valentine) Newsgroups: alt.hackers Subject: daft way to undo rm Message-ID: <1991Jun12.231044.14542@spider.co.uk> Date: 12 Jun 91 23:10:44 GMT Sender: news@spider.co.uk (USENET News System) Organization: Spider Systems Limited, Edinburgh, UK. Lines: 17 Approved: mark@spider.co.uk Originator: mark@redknee.spider.co.uk Nntp-Posting-Host: redknee.spider.co.uk After spending a few hours typing in a fairly lengthy shell script, my brain decided I'd better rm it immediately (you know the evil way these minds work). I happened to be using rlogin from within Oliver Laumann's "screen" utility at the time, so I su'd, typed "less /dev/disk", used "/" to search for a few remembered variable names, and checked on its progress every now and then. When I saw a block on the free list I recognised, I used the screen-dump key to save it to local host's disk. By the end of the afternoon (after just two or three passes) I was able to do a simple cat and edit and found myself only a few bytes short. It's nice to be able to take a leisurely approach to these things now and then! Mark. -- Mark Valentine, Spider Systems /\oo/\ "I'll be mellow when I'm DEAD."