Skip to content

Instantly share code, notes, and snippets.

@mgor
Created December 16, 2019 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgor/8bc1761d10ac36388039cb3b798e7ab2 to your computer and use it in GitHub Desktop.
Save mgor/8bc1761d10ac36388039cb3b798e7ab2 to your computer and use it in GitHub Desktop.
# After gathering all the evidence:
grep -f <(grep -f <(awk '/^License Plate L337.*9$/,/^$/' vehicles | sed '/^$/d' | paste -d, - - - - - - | awk '/Honda/ && /Blue/ && /Height: 6/' | awk -F, '{print $4}' | awk -F': ' '{print $NF}') memberships/{AAA,Delta_SkyMiles,Museum_of_Bash_History,Terminal_City_Library} | awk -F: '{print $NF}' | sort | uniq -c | awk '/ 4 / {print $2" "$3}') people | awk '{gsub(/,/, "", $6); print "nl streets/"$5"_"$6" | grep "$NF}' | bash | awk -F# '{print "grep -nH \"Considered a suspect\" interviews/interview-"$NF}' | bash | awk -F'[-:]' '{print "grep -n \"SEE INTERVIEW #"$2"\" streets/*"}' | bash | awk -F'[/:]' '{gsub(/_/, " ", $2); print "grep -E \""$2".*line "$3"\" people"}' | bash | awk '{print $1" "$2}' | $(command -v md5 || command -v md5sum) | grep -qif /dev/stdin ../encoded && echo CORRECT\! GREAT WORK, GUMSHOE. || echo SORRY, TRY AGAIN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment