[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed Dec 15 13:27:06 2004 -->
- <!--x-from-r13: rfbgrevp ng 3gvzrf25.arg (Urbsserl) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: Pine.LNX.4.44.0412151055550.19702-[email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: To: Jerry Yu... Re: [ale] 2 Perl questions ? -->
- <h1>to: Jerry Yu... Re: [ale] 2 Perl questions ?</h1>
- <li><em>date</em>: Wed Dec 15 13:27:06 2004</li>
- <li><em>from</em>: esoteric at 3times25.net (Geoffrey)</li>
- <li><em>in-reply-to</em>: <<a href="msg00544.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00544.html">[email protected]</a>></li>
- <li><em>subject</em>: To: Jerry Yu... Re: [ale] 2 Perl questions ?</li>
- <title>to: Jerry Yu... Re: [ale] 2 Perl questions ?</title>
Aditya Srinivasan wrote:
> The other aspect of doing it on your own is :
>
> The algorithm to separate files into groups <=650 sounds non trivial.
>
> 1.List files and sizes
> 2.Sort
> 3.Pick appropriate combinations from the list (The hard part ??)
I wrote a shell script that did this many years ago (about 15), no
longer have it. Basically, it first determined how many 'N' items of
size 'S' I needed. Then it sorted by size and did the following:
bucket1 bucket2 ... bucketN
largestfile nextlargest Nlargest
(N-1)largest (N-2)largest (N-3)largest
And so on. It can be done pretty easily. The more generic the
solution, the more difficult, but the more useful.
--
Until later, Geoffrey
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00544" href="msg00544.html">To: Jerry Yu... Re: [ale] 2 Perl questions ?</a></strong>
<ul><li><em>From:</em> sriad at uab.edu (Aditya Srinivasan)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00546.html">To: Jerry Yu... Re: [ale] 2 Perl questions ?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00548.html">To: Jerry Yu... Re: [ale] 2 Perl questions ?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00554.html">To: Jerry Yu... Re: [ale] 2 Perl questions ?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00548.html">To: Jerry Yu... Re: [ale] 2 Perl questions ?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00547"><strong>Date</strong></a></li>
<li><a href="threads.html#00547"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>