Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2001 11:56:18 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: tail
Message-ID:  <200105020956.LAA50949@lurza.secnetix.de>
In-Reply-To: <Pine.BSF.4.21.0105010800310.55348-100000@lists.unixathome.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Langille <dan@langille.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105020956.LAA50949>