diff --git a/IT/Scripting.md b/IT/Scripting.md index fe44e4f..ef90322 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -75,12 +75,12 @@ esac ### For loops `for` loops are used when you have a finite collection over which you want to iterate, such as a list of files, or a list of server names: ```bash - THINGS="thingone thingtwo thingthree" -for S in $THINGS; do - echo "Doing something to $S" +for THING in $THINGS; do + echo "Doing something to $THING" done ``` + ### While loops ## Commands