mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
761 B
25 lines
761 B
6 years ago
|
## cl-camp4
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
|
"someone familiar"
|
||
|
|
||
|
Create a file `myfamily.sh`, which will show a subject's family (key: relatives).
|
||
|
|
||
5 years ago
|
- The quotes have to be removed.
|
||
6 years ago
|
|
||
5 years ago
|
- The subject will be decided depending on his ID which will be contained in the environment variable HERO_ID.
|
||
6 years ago
|
|
||
5 years ago
|
* Where to look : https://[[DOMAIN]]/assets/superhero/all.json
|
||
6 years ago
|
|
||
5 years ago
|
* What to use : curl, jq and others...
|
||
6 years ago
|
|
||
6 years ago
|
### Usage
|
||
6 years ago
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$ export HERO_ID=1
|
||
|
student@ubuntu:~/[[ROOT]]/test$ ./myfamily.sh
|
||
6 years ago
|
Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed)
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$
|
||
6 years ago
|
```
|