bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh -x but also show me the times when each line was executed


From: Dan Jacobson
Subject: Re: sh -x but also show me the times when each line was executed
Date: 09 Jul 2002 10:09:24 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

P> Dan Jacobson <address@hidden> wrote:
>> Problem: I can do sh -x some_program, but I can't see the times when
>> each line was executed, without say, rewriting the program to do that.

P> bash -x script | while read line; do echo "`date` $line"; done

bash -x script 2>&1 | while read line; do echo "`date` $line"; done
I suppose buffering isn't a problem BTW.
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]