[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: |
Paul Jarc |
Subject: |
Re: sh -x but also show me the times when each line was executed |
Date: |
Mon, 08 Jul 2002 11:36:34 -0400 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu) |
Dan Jacobson <jidanni@dman.ddts.net> 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.
bash -x script | while read line; do echo "`date` $line"; done
paul