Skip site navigation (1)Skip section navigation (2)
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

--GxcwvYAGnODwn7V8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 14, 2001 at 02:16:24AM +0000, Ryan Thompson wrote:
>=20
> [ 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=3D'/pub/trashfolder'
function rm {
    mv $* $TRASH || echo "Failed to move to trash"
}

    Or something along those lines.=20

    Mike

--=20
Michael P. Soulier <msoulier@storm.ca>=20
"With sufficient thrust, pigs fly just fine. However, this is not necessari=
ly 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

--GxcwvYAGnODwn7V8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----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-----

--GxcwvYAGnODwn7V8--

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?20010514085921.E16043>