how to write infinite loop in shell script code example
Example: bash endless loop
#!/bin/bash
while true
do
echo "Press [CTRL+C] to stop.."
sleep 1
done
#!/bin/bash
while true
do
echo "Press [CTRL+C] to stop.."
sleep 1
done