mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 02:04:23 +02:00
better for description
This commit is contained in:
@@ -106,9 +106,10 @@ case "$VARIABLE" in
|
|||||||
*) echo "It is not null.";;
|
*) echo "It is not null.";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#For loops iterate for as many arguments given:
|
# For loops iterate for as many arguments given:
|
||||||
#The contents of var $VARIABLE is printed three times.
|
# The contents of var $VARIABLE is printed three times.
|
||||||
for VARIABLE in x y z
|
# Note that ` ` is equivalent to $( ) and that seq returns a sequence of size 3.
|
||||||
|
for VARIABLE in `seq 3`
|
||||||
do
|
do
|
||||||
echo "$VARIABLE"
|
echo "$VARIABLE"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user