Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add questions, fix q3 #268

Merged
merged 1 commit into from
Aug 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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