mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 21:49:22 +01:00
Correct bash for...in loop example
Removed the $ in the variable declaration of the for...in bash loop to correct the code.
This commit is contained in:
parent
b28900b889
commit
1528dd4fbe
@ -82,7 +82,7 @@ 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
|
for VARIABLE in x y z
|
||||||
do
|
do
|
||||||
echo "$VARIABLE"
|
echo "$VARIABLE"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user