Skip to content

Latest commit

 

History

History
99 lines (69 loc) · 2.14 KB

solution.md

File metadata and controls

99 lines (69 loc) · 2.14 KB
# Clone the initial repository
git clone [email protected]: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

cd wdi

cd command-line-mystery

touch solution.md

cat instructions

cd mystery

cat crimescene

grep CLUE crimescene --context=4

grep Annabel people

head -n 179 streets/Buckingham_Place | tail -n 1

// see interview #699607

cd interview

cat interview-699607

//blue Honda, license plate head -n L337

grep -A 5 "L337" vehicles

// Jeremy Bowers .... Joe Germuska

cd memberships

cat Fitness_Galaxy AAA United_MileagePlus | grep "Joe Germuska" | wc -l

cat Fitness_Galaxy AAA United_MileagePlus | grep "Jeremy Bowers" | wc -l