From 185ded46bc0e8bfd13358d37de86bec02d2b6a3d Mon Sep 17 00:00:00 2001 From: Joseph O'Reilly <jo8g21@soton.ac.uk> Date: Mon, 14 Feb 2022 09:49:36 +0000 Subject: [PATCH] adding a for loop --- var.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var.sh b/var.sh index 2eb0e2c..c354e3c 100644 --- a/var.sh +++ b/var.sh @@ -2,4 +2,10 @@ exampleVariable=600 +for i in {1..10} +do + echo hello $i +done + + echo the value of the variable is $exampleVariable -- GitLab