Slow Down There Buddy
This chunk of code allows you to add a little artificial slow down to your bash scripts. Add it to the top of the shell script and watch ... everything ... pass ... by ... real ... slow.
Especially useful with set -x.
sleep_some () { sleep 1; } trap sleep_some DEBUG