Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

down to three names in final_final_final_final #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottqueen-bixal
Copy link

we first ran grep "CLUE" crimescene to get the out put of the clues

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.

we figured from here that the suspect is a male, at least 6', had memberships in AAA, Delta SkyMiles, the local library, and the Museum of Bash History

Here are the steps we took to get to our current list of names:

  • sort each of the membership list into alphabetical order without case sensitivity

sort <file1.txt> -o <output.txt>

  • compare each of the files to find common string matches of names

comm -12 <file1.txt> <file2.txt> > <output.txt>

  • filter the list of people by male and reduce to a list of only names

cat male_sort.txt | cut -f 1 > male_sort_cut.txt

  • filter vehicles list by groups that match `Height: 6:

grep -B 1 -A 3 "Height: 6" vehicles > vehicles_height.txt

  • filter height list by Owners name and sort it

grep -E "Owner:" vehicles_height.txt | sed 's/Owner: //' > vehicles_height_owner.txt

comm -12 final_final_final.txt vehicles_height_owner_sort.txt > final_final_final_final.txt

We are down to the following names, but need to narrow it down to one!
➜ cat final_final_final_final.txt Augustin Lozano Brian Boyer Jeremy Bowers

@alatu
Copy link

alatu commented Oct 16, 2023

Are you looking for help?

I played it today and found the solution quite simple.
Your approach with sorting and comparing is not the way to do it. I initially thought that too, but it is a murder mystery and not a learn-how-to-bash.
You can actually question people with the interviews.
I was able to find the murderer even without the clue about the memberships.

@ernstki
Copy link

ernstki commented Dec 10, 2024

@veltman I think this PR was mistakenly opened against your repo and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants