checks for layout
This commit is contained in:
parent
1bf0caa082
commit
5912945ed0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue