Date: Mon, 14 May 2001 08:59:21 -0400 From: "Michael P. Soulier" <msoulier@storm.ca> To: freebsd-questions@FreeBSD.ORG Subject: Re: Recycle bin for FreeBSD? :-) Message-ID: <20010514085921.E16043@storm.ca> In-Reply-To: <20010514015657.Y1527-100000@home.sasknow.net>; from ryan@sasknow.com on Mon, May 14, 2001 at 02:16:24AM %2B0000 References: <20010514015657.Y1527-100000@home.sasknow.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, May 14, 2001 at 02:16:24AM +0000, Ryan Thompson wrote:
>
> [ Don't throw things at me, OK? :-) ]
Tempting... :)
> 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. :)
2.
TRASH='/pub/trashfolder'
function rm {
mv $* $TRASH || echo "Failed to move to trash"
}
Or something along those lines.
Mike
--
Michael P. Soulier <msoulier@storm.ca>
"With sufficient thrust, pigs fly just fine. However, this is not necessarily a
good idea. It is hard to be sure where they are going to land, and it could be
dangerous sitting under them as they fly overhead." -- RFC 1925
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6/9apKGqCc1vIvggRAm+dAKC74TEbkhbuFtXN+g/HIJhFyVMg9gCgj8rL
wOdXZ98X6b5N6NAXWQdPxX4=
=kt1d
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010514085921.E16043>
