Created
February 28, 2019 16:10
-
-
Save JonesCharly/bfb54b8bef093888c4e961da5cce4848 to your computer and use it in GitHub Desktop.
Enquête à Terminal City
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Thu Feb 28 15:52:23 on ttys000 | |
------------------------------------------------------------ | |
~(master*) » cat hint1 fazentieuxcharline@MacBook-Pro-3 | |
cat: hint1: No such file or directory | |
------------------------------------------------------------ | |
~(master*) » cd clmystery-master fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint1 fazentieuxcharline@MacBook-Pro-3 | |
Try poking around what's in a file by using the 'head' command: | |
head -n 20 people | |
This will show you the first 20 lines of the 'people' file.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » head -n 20 people | |
head: people: No such file or directory | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cd mystery fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » head -n 2O people | |
head: illegal line count -- 2O | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » man head fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » head -n 20 people fazentieuxcharline@MacBook-Pro-3 | |
*************** | |
To go to the street someone lives on, use the file | |
for that street name in the 'streets' subdirectory. | |
To knock on their door and investigate, read the line number | |
they live on from the file. If a line looks like gibberish, you're at the wrong house. | |
*************** | |
NAME GENDER AGE ADDRESS | |
Alicia Fuentes F 48 Walton Street, line 433 | |
Jo-Ting Losev F 46 Hemenway Street, line 390 | |
Elena Edmonds F 58 Elmwood Avenue, line 123 | |
Naydene Cabral F 46 Winthrop Street, line 454 | |
Dato Rosengren M 22 Mystic Street, line 477 | |
Fernanda Serrano F 37 Redlands Road, line 392 | |
Emiliano Wenk M 90 Paulding Street, line 490 | |
Larry Lapin M 71 Atwill Road, line 298 | |
Jakub Gondos M 61 Mitchell Street, line 187 | |
Derek Kazanin M 55 Tennis Road, line 440 | |
Jens Tuimalealiifano M 83 Rockwood Street, line 205 | |
Nikola Kadhi M 75 Glenville Avenue, line 226 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » cd.. fazentieuxcharline@MacBook-Pro-3 | |
zsh: command not found: cd.. | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint2 fazentieuxcharline@MacBook-Pro-3 | |
Try using grep to search for the clues in the crimescene file: | |
grep "CLUE" crimescene% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cd mystery fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "CLUE" crimescene fazentieuxcharline@MacBook-Pro-3 | |
CLUE: Footage from an ATM security camera is blurry but shows that the perpetrator is a tall male, at least 6'. | |
CLUE: Found a wallet believed to belong to the killer: no ID, just loose change, and membership cards for AAA, Delta SkyMiles, the local library, and the Museum of Bash History. The cards are totally untraceable and have no name, for some reason. | |
CLUE: Questioned the barista at the local coffee shop. He said a woman left right before they heard the shots. The name on her latte was Annabel, she had blond spiky hair and a New Zealand accent. | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint3 fazentieuxcharline@MacBook-Pro-3 | |
In order to track down our potential witness, we need to figure out where she lives. | |
Try using 'head' on some of the files like 'people' and 'vehicles' and see where we might find that.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cd mystery fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "Annabel" people fazentieuxcharline@MacBook-Pro-3 | |
Annabel Sun F 26 Hart Place, line 40 | |
Oluwasegun Annabel M 37 Mattapan Street, line 173 | |
Annabel Church F 38 Buckingham Place, line 179 | |
Annabel Fuglsang M 40 Haley Street, line 176 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "Annabel" vehicules | |
grep: vehicules: No such file or directory | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "Annabel" vehicles fazentieuxcharline@MacBook-Pro-3 | |
Owner: Oluwasegun Annabel | |
Owner: Annabel Church | |
Owner: Annabel Sun | |
Owner: Annabel Fuglsang | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint4 fazentieuxcharline@MacBook-Pro-3 | |
To find all the Annabels' addresses, use the 'people' file: | |
grep "Annabel" people | |
Notice that not all of the results are worth investigating. Remember what we know about Annabel.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint5 fazentieuxcharline@MacBook-Pro-3 | |
"Interview" the two possible witnesses by reading the correct line from the streets they live on: | |
head -n 173 streets/Mattapan_Street | tail -n 1 | |
This will give you just line 173 of Mattapan street, because it will take first 173 lines, and then take | |
the last line from those.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cd mystery fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » head -n 173 streets/Mattapan_Stret | tail -n 1 | |
head: streets/Mattapan_Stret: No such file or directory | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » head -n 173 streets/Mattapan_Street | tail -n 1 | |
SEE INTERVIEW #9437737 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » head -n 179 streets/Buckingham_Place | tail -n 1 | |
SEE INTERVIEW #699607 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "#9437737" interviews | |
grep: interviews: Is a directory | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » cd interviews fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery/interviews(master*) » grep "#9437737" | |
^C | |
------------------------------------------------------------ | |
~/clmystery-master/mystery/interviews(master*) » cat interview-9437737 | |
Doesn't appear to be the witness from the cafe, who is female.% ------------------------------------------------------------ | |
~/clmystery-master/mystery/interviews(master*) » cat interview-699607 | |
Interviewed Ms. Church at 2:04 pm. Witness stated that she did not see anyone she could identify as the shooter, that she ran away as soon as the shots were fired. | |
However, she reports seeing the car that fled the scene. Describes it as a blue Honda, with a license plate that starts with "L337" and ends with "9"% ------------------------------------------------------------ | |
~/clmystery-master/mystery/interviews(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint6 fazentieuxcharline@MacBook-Pro-3 | |
To find a matching license plate, or a matching car, you can use grep on the 'vehicles' file: | |
grep "Honda" vehicles | |
grep "Blue" vehicles | |
grep "L337" vehicles | |
This doesn't give us anything useful - why not? Try using 'head' on the file to investigate its structure.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cd mystery fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "Honda Blue L337" vehicles | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "L337" vehicles fazentieuxcharline@MacBook-Pro-3 | |
License Plate L337ZR9 | |
License Plate L337P89 | |
License Plate L337GX9 | |
License Plate L337QE9 | |
License Plate L337GB9 | |
License Plate L337OI9 | |
License Plate L337X19 | |
License Plate L337539 | |
License Plate L3373U9 | |
License Plate L337369 | |
License Plate L337DV9 | |
License Plate L3375A9 | |
License Plate L337WR9 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep -A 5 "L337" vehicles | |
License Plate L337ZR9 | |
Make: Honda | |
Color: Red | |
Owner: Katie Park | |
Height: 6'2" | |
Weight: 189 lbs | |
-- | |
License Plate L337P89 | |
Make: Honda | |
Color: Teal | |
Owner: Mike Bostock | |
Height: 6'4" | |
Weight: 173 lbs | |
-- | |
License Plate L337GX9 | |
Make: Mazda | |
Color: Orange | |
Owner: John Keefe | |
Height: 6'4" | |
Weight: 185 lbs | |
-- | |
License Plate L337QE9 | |
Make: Honda | |
Color: Blue | |
Owner: Erika Owens | |
Height: 6'5" | |
Weight: 220 lbs | |
-- | |
License Plate L337GB9 | |
Make: Toyota | |
Color: Blue | |
Owner: Matt Waite | |
Height: 6'1" | |
Weight: 190 lbs | |
-- | |
License Plate L337OI9 | |
Make: Jaguar | |
Color: Blue | |
Owner: Brian Boyer | |
Height: 6'6" | |
Weight: 201 lbs | |
-- | |
License Plate L337X19 | |
Make: Fiat | |
Color: Blue | |
Owner: Al Shaw | |
Height: 6'5" | |
Weight: 240 lbs | |
-- | |
License Plate L337539 | |
Make: Honda | |
Color: Blue | |
Owner: Aron Pilhofer | |
Height: 5'3" | |
Weight: 198 lbs | |
-- | |
License Plate L3373U9 | |
Make: Ford | |
Color: Blue | |
Owner: Miranda Mulligan | |
Height: 6'6" | |
Weight: 156 lbs | |
-- | |
License Plate L337369 | |
Make: Honda | |
Color: Blue | |
Owner: Heather Billings | |
Height: 5'2" | |
Weight: 244 lbs | |
-- | |
License Plate L337DV9 | |
Make: Honda | |
Color: Blue | |
Owner: Joe Germuska | |
Height: 6'2" | |
Weight: 164 lbs | |
-- | |
License Plate L3375A9 | |
Make: Honda | |
Color: Blue | |
Owner: Jeremy Bowers | |
Height: 6'1" | |
Weight: 204 lbs | |
-- | |
License Plate L337WR9 | |
Make: Honda | |
Color: Blue | |
Owner: Jacqui Maher | |
Height: 6'2" | |
Weight: 130 lbs | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » hint6 fazentieuxcharline@MacBook-Pro-3 | |
zsh: command not found: hint6 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint6 fazentieuxcharline@MacBook-Pro-3 | |
To find a matching license plate, or a matching car, you can use grep on the 'vehicles' file: | |
grep "Honda" vehicles | |
grep "Blue" vehicles | |
grep "L337" vehicles | |
This doesn't give us anything useful - why not? Try using 'head' on the file to investigate its structure.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint7 fazentieuxcharline@MacBook-Pro-3 | |
In order to actually get information about vehicles that might match our description, | |
we need to get multiple lines AROUND each match. We can use the -A, -B, or -C option with grep: | |
grep -A 5 "L337" mystery/vehicles | |
This will match the license plates that contain "L337" and, for each match, show us the five lines AFTER it.% ------------------------------------------------------------ | |
~/clmystery-master(master*) » cat hint8 fazentieuxcharline@MacBook-Pro-3 | |
To see who was a member of several different groups, you can combine their membership lists into one and search against that. | |
cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith" | |
If you only want to see the number of matches, you can use grep's -c option (the c must be lowercase): | |
cat Fitness_Galaxy AAA United_MileagePlus | grep -c "John Smith" | |
Or you can pipe the result to 'wc -l': | |
cat Fitness_Galaxy AAA United_MileagePlus | grep "John Smith" | wc -l% ------------------------------------------------------------ | |
~/clmystery-master(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~(master*) » clmystery-master fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master(master*) » mystery fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » memberships fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery/memberships(master*) » cat AAA Delta_SkyMiles Terminal_City_Library Museum_of_Bash_History | grep "Jacqui Maher" | |
Jacqui Maher | |
Jacqui Maher | |
Jacqui Maher | |
Jacqui Maher | |
------------------------------------------------------------ | |
~/clmystery-master/mystery/memberships(master*) » cat AAA Delta_SkyMiles Terminal_City_Library Museum_of_Bash_History | grep "Joe Germuska" | |
Joe Germuska | |
Joe Germuska | |
------------------------------------------------------------ | |
~/clmystery-master/mystery/memberships(master*) » cat AAA Delta_SkyMiles Terminal_City_Library Museum_of_Bash_History | grep "Jeremy Bowers" | |
Jeremy Bowers | |
Jeremy Bowers | |
Jeremy Bowers | |
Jeremy Bowers | |
------------------------------------------------------------ | |
~/clmystery-master/mystery/memberships(master*) » .. fazentieuxcharline@MacBook-Pro-3 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » grep "Jacqui Maher" people | |
Jacqui Maher F 40 Andover Road, line 224 | |
------------------------------------------------------------ | |
~/clmystery-master/mystery(master*) » echo "Jeremy Bowers" fazentieuxcharline@MacBook-Pro-3 | |
Jeremy Bowers | |
------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment