On Thursday 20 November 2008 17:18, Carlos E. R. wrote:
On Thursday, 2008-11-20 at 16:41 -0800, Randall R Schulz wrote:
On Thursday 20 November 2008 16:30, Carlos E. R. wrote:
Do you know of a pipe program that precedes every line with a time stamp?
No such thing exists, nor is it even remotely possible...
Not possible? I was considering of programming it myself, it would be quite short. I'd do it on pascal, probably. I was just wondering if it existed.
Still...
tstamp:
...
See? Not that difficult :-)
Just 'cause it's not possible doesn't mean I can't do it.
...
The one most usefull to me would be time since command start.
That's feasible. One of date's format's is (as shown in one of my examples), seconds since the epoch. That in combination with BASH's simple math abilities and its build-in "printf" command (to get fixed-width number rendering) make it straightforward to accomplish this. I'll leave it as "an exercise for the reader..."
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org