srb(_at_)cuci(_dot_)nl (Stephen R. van den Berg) writes:
:0
* $ $COUNT^0
* 1^0
{ }
NEWCOUNT=$=
The elegence of this maneuver inflicts me with gurgling twitches of awe.
I *almost* had a method worked out that used uniq for the date comparison,
as my entry in the "gratuitous use of shell utility" contest, but I would
have had to put the per-day counter at the beginning instead of the end.
<sigh>
This won't work, Philip:
:0
* COUNT ?? ^..$
COUNT=0$COUNT
^^^^^^^^^^^^^ <<-- enclose it in braces
Well, yes. Did I mention that I didn't test it? :-)
"My name is Smith, the P is not pronounced."
...as opposed to my last name, which most the (American) population thinks
has a silent 'e'...
Philip Guenther