Skip to content

Commit

Permalink
add questions, fix q3 (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonGrant authored Aug 12, 2020
1 parent f35e17c commit 387173b
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion bash/bash-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ done

- [x] ( command )
- [ ] sh command
- [ ] { command }
- [ ] { command; }
- [ ] (( command ))

#### Q4. Using "awk", what would the output of this command string be?
Expand Down Expand Up @@ -490,6 +490,50 @@ echo $greeting, everybody!
- [ ] a parameter
- [x] a vairable
#### Q47. Which statement checks whether the variable num is greater than five?
- [ ] (( $num -gt 5 ))
- [ ] [[ $num -lt 5 ]]
- [x] (( $num > 5 ))
- [ ] $num > 5
#### Q48. Using Bash extended globbing, what will be the output of this command?
##### *code missing*
- [ ] a
```bash
apple
banana
```
- [ ] b
```bash
apple
banana
bananapple
banapple
pineapple
strawberry
```
- [ ] c
```bash
apple
banana
bananappple
banapple
pineapple
```
- [ ] d
```bash
apple
banana
bananapple
banapple
pineapple
```
Expand Down

0 comments on commit 387173b

Please sign in to comment.