Below script will do five iterations.
#!/bin/bash
i=1
while [ $i -le 5 ]
do
echo “$i . Welcome to linuxmylife.com “
(( i++ ))
done
Below script will do infinite iterations.
#!/bin/bash
i=1
while true
do
echo “$i . Welcome to linuxmylife.com “
(( i++ ))
done
2200 Total Views 2 Views Today
related posts
« shell script monitor time_wait and close_time How to take Mysql database backup and restore »