#!/bin/bash ############################################################################ # http://LinuxMeister/Scripts/while-loop.sh.html # SAMPLE: WHILE LOOP - counter john meister jun 2013 ############################################################################ # cat /dev/null > count.txt # clear output file X=1 # declare starting value X=1 echo "********************** counting to 10 *******************************" while [ $X -le 10 ] # while the count is less than 10 do echo ">>--> $X" | tee -a count.txt # display count and add to file X=$(( $X + 1 )) # increment variable by one sleep 1 # sleep for 1 second done echo "********************** done! ***************************************" ############################################################################ |
SEARCH and Navigation TOOLFor the best synthetic lubricants, filters, and other automotive products use the free AMSOIL product guide, simply click and enter your year, make and model. visit AMSOIL's site, or call 1-800-956-5695, please use customer #283461 |
Computers: Diesel Engines Grand Wagoneer parts
|
books by john:
Everett weather -- traffic --- News -- Middle East NASB/KJV-- South East Asian Missions -- BibleTech -- Voice of the Martyrs |
|