infinite


One line infinite while loop

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