bug-bash
[Top][All Lists]
Advanced

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

How to run something before invoking the inputted command?


From: Clark J. Wang
Subject: How to run something before invoking the inputted command?
Date: Sat, 10 Jul 2010 11:22:27 +0800

For example, in the interactive shell, I want to track the time when every
inputted command is invoked. So I want to run a `date' command before
actually invoking the inputted command. For now I have to do like this:

$ date; command1
$ date; command2

Is there an easy way to do that?

-Clark


reply via email to

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