[lug] Fwd: Simple counter?
Davide Del Vento
davide.del.vento at gmail.com
Sat May 25 10:15:03 MDT 2013
If the "someone" wanted to make a general purpose solution, it would
have been very complicated, as this discussion partially discussed.
If "someone" wanted something for one specific reason, it would be so
trivial that it would not have been worth the hassle of releasing it.
I believe that's why there isn't such a thing (as far as I'm aware and
as far as everybody who has posted so far seem to be aware).
For example: you make this thing but then you may want to use for two
different purposes, e.g. counting how many times event X occurred and
appending a suffix to a set of files. You clearly need two,
non-interacting counters. With random, this problem is much less
Enjoy the weekend,
On Sat, May 25, 2013 at 8:58 AM, Jeffrey S. Haemer
<jeffrey.haemer at gmail.com> wrote:
>> I inferred that the original poster was looking for more of a shell
>> script level solution, but I might have been jumping to conclusions
> The original poster is looking for an existing command that produces
> sequential integers, one per call.
> His motivation is a conviction that in the past thirty or forty years,
> someone must have contributed a standard tool/package that does this,
> coupled with embarrassment that he doesn't know it off the top of his head.
> A shell one-liner would be an okay substitute: something intermediate
> between "echo $RANDOM" and "echo 9" . :-) (Thanks, Anthony.)
> Sure, there are edge-cases, some not obscure: "If we call it a bunch, can't
> the numbers get awfully big?" But geez, ....
> Jeffrey Haemer <jeffrey.haemer at gmail.com>
> 720-837-8908 [cell], http://seejeffrun.blogspot.com [blog],
> http://www.youtube.com/user/goyishekop [vlog]
> פרייהייט? דאס איז יאַנג דינען וואָרט.
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
More information about the LUG