-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2008-11-21 at 01:43 -0500, Brian K. White wrote:
So, that silly time-stamp logger thingie ended up becoming a bug in my brain that wouldn't rest until I made it into an actual useful script that could do both of the types of time-stamping mentioned so far. Plus, the "time since program start" idea made me realise yet a 3rd way to count that someone might want in some cases, "time-since-last-event".
:-)
So here is an awk script that takes an optional command line arg "mode=s" or "mode=l" and can do any of above depending on mode=x if no mode=x specified, it's the same as mode=a , since I think thats the most commonly expected form of timestamping. In all cases it's very lightweight, no extra processes, and only awk (which is a lot lighter than say, perl.
Ha, but my pascal binary is lighter :-p Now you need to create the man and info pages... (ducking and running)
I reduced the number of digits in the days from 4 to 3, to eliminate the misleading appearance that it's the year in there. That still allows for 2.73 years of continuous operation. heh.
Wow. I'll have to save all these emails for possible later use :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkkmk54ACgkQtTMYHG2NR9WXpQCeLkZwdsOQsM9Fy1Y1Qh0bA4lq nSUAnRR/G0bSnX+k1p5qVKRhiuKDSuz3 =oXFt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org