From owner-freebsd-stable Wed May 2 2:56:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id 769C537B423 for ; Wed, 2 May 2001 02:56:23 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.9.3/8.9.3) id LAA50949; Wed, 2 May 2001 11:56:18 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Date: Wed, 2 May 2001 11:56:18 +0200 (CEST) Message-Id: <200105020956.LAA50949@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG Reply-To: freebsd-stable@FreeBSD.ORG Subject: Re: tail In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.1-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Langille wrote: > On Mon, 30 Apr 2001, Chris Byrnes wrote: > > We have rm -rf to protect us from doing things to directories (IE: rm > > /poop). > > This avoids catastraphic file removals. > > > We need tail -argument to protect us from doing things to directories. > > This avoids nothing. I agree 100%. Furthermore, we would have to add such an -option to hundreds of tools, literally. That's not feasible. BTW, I often find myself needing to "edit" a directory (this is sometimes more handy than a bunch of "mv" commands). This doesn't work with vi, of course (you can read a directory, but you can't write it), so I wrote a small shell script that loads the directory (that is, the filenames) into your $EDITOR and writes them back afterwards (i.e. renames the files). http://www.secnetix.de/~olli/scripts/vils Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message