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.
34 lines
926 B
34 lines
926 B
5 years ago
|
## explain
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
"So you want to play?"
|
||
|
|
||
|
"How did you do it?"
|
||
|
|
||
5 years ago
|
The commissioner thanks you for delivering the suspect. He now asks you how did you get onto his trail.
|
||
5 years ago
|
|
||
|
Write an `explain.sh` file that:
|
||
|
|
||
|
- displays the first and last name of your key witness
|
||
|
- displays the interview number of this witness
|
||
5 years ago
|
- displays the colour and the make of the car of the main suspect
|
||
5 years ago
|
- displays the names of the 3 other main suspects that were not arrested (in alphabetical order of their last name)
|
||
5 years ago
|
|
||
|
### Usage
|
||
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$ ./explain.sh | cat -e
|
||
5 years ago
|
FirstNameOfWitness LastNameOfWitness$
|
||
|
123456$
|
||
|
Red Ferrari$
|
||
|
FirstNameOfSuspect1 LastNameOfSuspect1$
|
||
|
FirstNameOfSuspect2 LastNameOfSuspect2$
|
||
|
FirstNameOfSuspect3 LastNameOfSuspect3$
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$
|
||
5 years ago
|
```
|
||
|
|
||
|
### Hint
|
||
|
|
||
|
"The answers in the usage are obviously there for formatting only, but you obviously knew that already... or did you? :) "
|