From 29b667b9990601604a38d9025fe6b4df659cfe52 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Thu, 30 May 2024 18:24:46 -0600 Subject: [PATCH] vault backup: 2024-05-30 18:24:46 --- IT/Scripting.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IT/Scripting.md b/IT/Scripting.md index ef90322..33aa127 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -80,6 +80,10 @@ for THING in $THINGS; do echo "Doing something to $THING" done ``` +The above example iterates over a space separated list of items, but if you wanted to iterate over a range of numbers, you could do something like this: +```bash +for i in {1..10} ; do ... ; done +``` ### While loops