// this is simple for loop with sleep for i in {1..10}; do echo -n "This is a test in loop $i "; date ; sleep 2; done