diff --git a/readme.md b/readme.md index 87cd8db..0bb1c03 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ ## Getting Started -1. Fork this repo, and clone it into your `dev` folder on your local machine. +1. Fork this repo, and clone it into your `wdi` folder on your local machine. 2. Change directories into `command-line-mystery`: @@ -29,7 +29,7 @@ ## Submission * As you make changes to `solution.md`, frequently commit and push to GitHub. -* Once you've finished the assignment and pushed your work to GitHub, make a pull request from your fork to the original repo. +* Once you've finished the assignment and pushed your work to GitHub, make a pull request from your fork to the original repo. You can find instructions for this [here](https://github.com/SF-WDI-LABS/shared_modules/blob/master/how-to/submit-homework.md). ## Resources diff --git a/solution.md b/solution.md index 59f92db..d13ed7c 100644 --- a/solution.md +++ b/solution.md @@ -1,63 +1,70 @@ -```zsh -# Clone the initial repository -git clone git@github.com:eerwitt/command-line-mystery.git -cd command-line-mystery - -# Check the status to see if anything is already marked as new (shouldn't be) -git status - -# Edit my solution file -subl solution.md - -# Commit initial solution -git add solution.md -git commit -a - -# Start reading the instructions -less instructions - -# Check for clues in the mystery -cd mystery -grep CLUE ./crimescene - -# Search for person with the Latte -grep Annabel ./people - -# Knock on her door -less streets/Mattapan_Street -# Goto line in file using less: http://stackoverflow.com/questions/8586648/going-to-a-specific-line-number-using-less-in-unix -# in less type 173g -# Try different interviews -less interviews/interview-47246024 - -less interviews/interview-699607 - -# Checking for vehicle -less vehicles -# Search in less for vehicles starting with L337 and ending in 9 -# in less /L337..9 -# Check which are over 6' -# Katie Park -# Mike Bostock -# John Keefe -# Erika Owens -# Matt Waite -# Brian Boyer -# Al Shaw -# Miranda Mulligan -# Joe Germuska -# Jeremy Bowers -# Jacqui Maher - -# Check which is male/female and get their names -egrep '((Katie Park)|(Mike Bostock)|(John Keefe)|(Erika Owens)|(Matt Waite)|(Brian Boyer)|(Al Shaw)|(Miranda Mulligan)|(Joe Germuska)|(Jeremy Bowers)|(Jacqui Maher))' ./people | grep '\tM\t' | cut -f1 - -# Limit down by membership -egrep -R '((Joe Germuska)|(Brian Boyer)|(Mike Bostock)|(Jeremy Bowers)|(John Keefe)|(Al Shaw)|(Matt Waite))' ./memberships - -# (Jeremy Bowers)|(Brian Boyer)|(Mike Bostock)|(Matt Waite) -# Not MB, wrong car color -# Not MW, wrong car manufacturer -# Not BB, wrong car manufacturer -# JB, it is JB -``` +// Search crimescene + $ grep "CLUE" crimescene + +// Researched Annabel + $ grep "Annabel" people + +// Researched Ms. Sun + $ grep -r "Annabel Sun" * + +// Researched Ms. Church + $ grep -r "Annabel Church" * + +// Visited Ms. Church + $ less +179 streets/Buckingham_Place + +// Interviewed Ms. Church + $ less interviews/interview-699607 +// Car: blue Honda, license plate "L337..9" + +// cross refferenced blue honda w/ license plate. + $ less vehicles + /L337..9 +// L337DV9, Blue Honda, Joe Germuska, 6'2", 164 lbs? Possibly +// L3375A9, Blue Honda, Jeremy Bowers, 6'1", 204 lbs? Possibly +// L337WR9, Blue Honda, Jacqui Maher, 6'2", 130 lbs? Possibly + +// Research possible suspects. +$ grep -r "Joe Germuska" * +// memberships/Terminal_City_Library:Joe Germuska +// memberships/AAA:Joe Germuska +// people:Joe Germuska M 65 Plainfield Street, line 275 +// vehicles:Owner: Joe Germuska + +$ grep -r "Jeremy Bowers" * +//memberships/Museum_of_Bash_History:Jeremy Bowers +//memberships/Terminal_City_Library:Jeremy Bowers +//memberships/AAA:Jeremy Bowers +//memberships/Delta_SkyMiles:Jeremy Bowers +//people:Jeremy Bowers M 34 Dunstable Road, line 284 +//vehicles:Owner: Jeremy Bowers + +$ grep -r "Jacqui Maher" * +//memberships/Museum_of_Bash_History:Jacqui Maher +//memberships/Terminal_City_Library:Jacqui Maher +//memberships/AAA:Jacqui Maher +//memberships/Delta_SkyMiles:Jacqui Maher +//people:Jacqui Maher F 40 Andover Road, line 224 +//vehicles:Owner: Jacqui Maher + +// 2 suspects: Jacqui Maher and Jeremy Bowers +$ less +284 streets/Dunstable_Road +// SEE INTERVIEW #9620713 + +$ less interviews/interview-9620713 +// Not home, fled? guilty? + +$ less +224 streets/Andover_Road +// SEE INTERVIEW #904020 + +$ less interviews/interview-904020 +// Suspect eliminated + +// Don't believe he's our guy but better safe than sorry. +$ less +275 streets/Plainfield_Street +// SEE INTERVIEW #29741223 + +$ less interviews/interview-29741223 +// suspect eliminated + +|| CULPRIT: Jeremy Bowers || \ No newline at end of file