Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2005 15:58:38 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Very large directory
Message-ID:  <200501201458.j0KEwce6075822@lurza.secnetix.de>
In-Reply-To: <41EFC46B.6070909@landgren.net>

next in thread | previous in thread | raw e-mail | index | archive | help
David Landgren <david@landgren.net> wrote:
 > Oliver Fromme wrote:
 > > I would suggest trying this simple hack:
 > > 
 > > cd /var/spool/directory ; cat . | strings | xargs rm -f
 > > 
 > > It's a dirty hack, but might work, if the file names in
 > > that directory aren't too strange (no spaces etc.).
 > 
 > why suggest a dirty hack that might not work, when the proposed Perl 
 > script would have worked perfectly?

In this case, the hack _should_ work, and is about 1/10 of
the size of the perl script and leaves a lot less room for
typing errors.  Aport from that, perl might not even be
installed on the machine in question, who knows.

But of course:  YMMV.  It was just a suggestion.

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

"I made up the term 'object-oriented', and I can tell you
I didn't have C++ in mind."
        -- Alan Kay, OOPSLA '97



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