Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "Trying $1"
echo $1 | $(command -v md5 || command -v md5sum) | grep -qif /dev/stdin encoded && echo CORRECT\! GREAT WORK, GUMSHOE. || echo SORRY, TRY AGAIN.
4 changes: 1 addition & 3 deletions solution
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Checking Your Answer on Mac/Linux:

Copy and paste the following command, replace John Doe with the suspect's name you want to check, and execute it from inside the main clmystery directory:

echo "John Doe" | $(command -v md5 || command -v md5sum) | grep -qif /dev/stdin encoded && echo CORRECT\! GREAT WORK, GUMSHOE. || echo SORRY, TRY AGAIN.
Use the included "check.sh" script, passing the name of the suspect as an argument in quotes (e.g. ./check.sh "John Doe").

Checking Your Answer on Windows:

Expand Down