Posted By

thoaionline on 11/23/11


Bash loop

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


infinitive loop

 / Published in: Bash

infinitive loop in bash, useful if you want to have a self-healing process

  1. #!/bin/bash
  2. while :
  3. do
  4. echo "Press [CTRL+C] to stop.."
  5. sleep 1
  6. done

Report this snippet  

You need to login to post a comment.