[rescue] Help w/ computer time??
Derrick D. Daugherty
derrick at blinky-lights.org
Wed Apr 24 22:55:41 CDT 2002
It's rumored that around Wed, Apr 24, 2002 at 03:47:31PM -0400
"Greg A. Woods" <woods at weird.com> wrote:
> [ On Wednesday, April 24, 2002 at 14:31:54 (-0500), Bill Bradford wrote: ]
> > Subject: Re: [rescue] Help w/ computer time??
> >
> > On Wed, Apr 24, 2002 at 03:28:55PM -0400, Greg A. Woods wrote:
> > > > for i in `cat filename` ; do
> > > > echo -n $i ' '
> > > > echo $i | gawk '{print strftime("%a %b %d %H:%M:%S %Z %Y", $1)}'
> > > > done
> > > I really hate to do this, but you're _really_ asking for it these days:
> > > That's such horrible inefficient and poorly designed code it almost made
> > > me puke no my keyboard! (well not literally, but it's sure making me
> > > spew my thoughts through my keyboard and into this message! :-)
> >
> > *SO*? *IT WORKS*. Who *cares* if it isnt efficient or beautiful or
> > doesent meet the Greg Woods Coding Standard? Its a FOUR LINE SCRIPT.
>
> Actually, depending on the data set, it won't work -- it'll bomb rather
> badly.
>
> Also, depending on how often it is needed, it'll be slower than molasses
> at the South Pole (in any month! ;-). (maybe not slower than doing the
> same thing with a perl invocation per value, though :-)
quick note: whole-heartedly agree with everything in this post.
do it RIGHT the first time
laziness is a KEY quality for any engineer; do it once and forget it.
More information about the rescue
mailing list