Answers for "bash endless loop"

4

infinite loop bash

#!/bin/bash
while :
do
	echo "Press [CTRL+C] to stop.."
	sleep 1
done
Posted by: Guest on October-16-2020
2

bash endless loop

#!/bin/bash
while true
do
	echo "Press [CTRL+C] to stop.."
	sleep 1
done
Posted by: Guest on May-19-2020
1

infinite loop bash

while :; do echo 'Hit CTRL+C'; sleep 1; done
Posted by: Guest on June-16-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language