Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2002 11:43:06 -0400
From:      "Derek" <derek@durham.net>
To:        "Jean-Yves Lefort" <jylefort@brutele.be>, <questions@freebsd.org>
Subject:   Re: Directory containing many files
Message-ID:  <018401c258e0$c2165fc0$04fea8c0@motorcity.on.ca>
References:  <20020910132907.1aabde58.jylefort@brutele.be>

next in thread | previous in thread | raw e-mail | index | archive | help
> Can some problems arise by having that many files in one >
single directory?

I have had issues with (bash) shell globbing.  For example the
command:

rm *

may return:
argument list too long

There may be another way around it, but I would then re-write my
command as:

ls | while read file; do rm $file; done

and do specific selection between the ls and while with a grep.
Just something I've experienced.

Derek


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?018401c258e0$c2165fc0$04fea8c0>