A Bourne shell function for repeating a command
This is one of my favorite Bourne shell functions. It lets you repeat any command at a regular interval. rept () { delay=$1; shift; while true; do eval "$@"; sleep $delay; done } For example, if you want to monitor the size of a...