"Clark J. Wang" <dearv...@gmail.com> writes: > 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?
You can get from the history output, if you set HISTTIMEFORMAT. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."