Bash Tips

From Koset

Jump to: navigation, search

Counting

x=0
top=10
while [ $x -ne $top ]
do
    echo $x
    x=$(( $x + 1 ))
done

http://www.faqs.org/docs/Linux-HOWTO/Bash-Prog-Intro-HOWTO.html

Retrieved from "http://koset.net/Bash_Tips"
Personal tools