public/subjects/explain/README.md

34 lines
880 B
Markdown
Raw Permalink Normal View History

2019-10-15 04:03:11 +00:00
## explain
### Instructions
"So you want to play?"
"How did you do it?"
2019-10-15 17:45:36 +00:00
The commissioner thanks you for delivering the suspect. He now asks you how did you get onto his trail.
2019-10-15 04:03:11 +00:00
2021-07-26 14:36:54 +00:00
Write an `explain.sh` file that in this order:
2019-10-15 04:03:11 +00:00
- displays the first and last name of your key witness
- displays the interview number of this witness
2019-12-04 18:08:32 +00:00
- displays the colour and the make of the car of the main suspect
2019-11-13 12:26:00 +00:00
- displays the names of the 3 other main suspects that were not arrested (in alphabetical order of their last name)
2019-10-15 04:03:11 +00:00
### Usage
```console
$ ./explain.sh | cat -e
2019-10-15 04:03:11 +00:00
FirstNameOfWitness LastNameOfWitness$
123456$
Red Ferrari$
FirstNameOfSuspect1 LastNameOfSuspect1$
FirstNameOfSuspect2 LastNameOfSuspect2$
FirstNameOfSuspect3 LastNameOfSuspect3$
$
2019-10-15 04:03:11 +00:00
```
### Hint
"The answers in the usage are obviously there for formatting only, but you obviously knew that already... or did you? :) "