Been testing some stuff and started lab 8
This commit is contained in:
14
Misc/nesting_loops.sh
Executable file
14
Misc/nesting_loops.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Jack-Benny Persson
|
||||
# LX13
|
||||
# Testing out nested loop from the book
|
||||
|
||||
for (( a = 1; a <= 3; a++ )); do
|
||||
echo "Outer loop: $a"
|
||||
for (( b = 1; b <= 3; b++ )); do
|
||||
echo " Inner loop: $b"
|
||||
done
|
||||
done
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user