This is a blank script for if you want to log the times of each step of your Bash script. Basically, it uses traps to write out runtime in seconds, the last command executed, and if applicable, the exit code. This all gets written to a file called time.log It is useful if you want to gauge the time each command in your script takes to run.
Go to file
Ze'ev Schurmann 59f0dc16bc Added the example script. 2023-12-12 22:38:02 +02:00
LICENSE Initial commit 2023-12-12 22:36:03 +02:00
README.md Initial commit 2023-12-12 22:36:03 +02:00
example.sh Added the example script. 2023-12-12 22:38:02 +02:00

README.md

log-times-of-each-step

This is a blank script for if you want to log the times of each step of your Bash script.

Basically, it uses traps to write out runtime in seconds, the last command executed, and if applicable, the exit code. This all gets written to a file called time.log

It is useful if you want to gauge the time each command in your script takes to run.