Date: Tue, 15 May 2001 09:18:10 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: "Michael P. Soulier" <msoulier@storm.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Recycle bin for FreeBSD? :-) Message-ID: <Pine.BSF.4.21.0105150914010.42439-100000@ren.sasknow.com> In-Reply-To: <20010514085921.E16043@storm.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael P. Soulier wrote to freebsd-questions@FreeBSD.ORG: > On Mon, May 14, 2001 at 02:16:24AM +0000, Ryan Thompson wrote: > > > > [ Don't throw things at me, OK? :-) ] > > Tempting... :) No. Don't. :-) > > Is anyone aware of any simple replacement for rm(1) that mimics the > > "trash" or "recycle" features of other OSes (i.e., moves the files to a > > safe area under the users control). > > 1. Don't delete things you want to keep. :) OK, YOU tell 'em. :-) > 2. > > TRASH='/pub/trashfolder' > function rm { > mv $* $TRASH || echo "Failed to move to trash" > } > > Or something along those lines. Yeah, already whipped up something like that. My question is whether to finish it, or find an existing one that works just as well. Thanks, - Ryan > Mike > > -- Ryan Thompson <ryan@sasknow.com> Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0105150914010.42439-100000>