while true; do echo 'Hit CTRL+C to exit'; someCommand; someOtherCommand; sleep 1; done
alternative syntax
while :; do echo 'Hit CTRL+C to exit'; someCommand; someOtherCommand; sleep 1; done
This post is also available in: Greek
while true; do echo 'Hit CTRL+C to exit'; someCommand; someOtherCommand; sleep 1; done
alternative syntax
while :; do echo 'Hit CTRL+C to exit'; someCommand; someOtherCommand; sleep 1; done
This post is also available in: Greek