checks for layout

This commit is contained in:
waldek 2021-04-10 14:07:05 +02:00
parent 1bf0caa082
commit 5912945ed0
1 changed files with 33 additions and 30 deletions

View File

@ -125,6 +125,7 @@ fi
## Guided Exercises ## Guided Exercises
1. Read the contents of script1.sh below: 1. Read the contents of script1.sh below:
``` ```
#!/bin/bash #!/bin/bash
@ -144,7 +145,9 @@ fi
echo "here's your cake!" echo "here's your cake!"
exit 0 exit 0
``` ```
* What is the output of these commands? * What is the output of these commands?
``` ```
./script1.sh ./script1.sh
echo $? echo $?
@ -152,8 +155,8 @@ echo $?
echo $? echo $?
./script1.sh CAKE ./script1.sh CAKE
echo $? echo $?
``` ```
2. Read the contents of file script2.sh: 2. Read the contents of file script2.sh:
``` ```
for filename in $1/*.txt for filename in $1/*.txt