Comments (5)
-
What OS are you using?
-
What happens if you just run:
echo "[the answer]" | $(command -v md5 || command -v md5sum)
- What happens if you just run:
grep -q "32cacbec4b918e2fd130fd68cf818ae5" solution && echo $?
from clmystery.
- Archlinux
felix@sun ~/gits/clmystery (git)-[master] % echo "[the answer]" | $(command -v md5 || command -v md5sum)
32CACBEC4B918E2FD130FD68CF818AE5 -
felix@sun ~/gits/clmystery (git)-[master] % grep -q "32cacbec4b918e2fd130fd68cf818ae5" solution && echo $?
0
The md5 from 2) is uppercase (because it was using md5
, and not md5sum
, which seem to differ in upper-/lowercase), and thus isn't matched by grep. Using grep -qif
instead of grep -qf
makes it work. Thanks for the quick answer! :)
Edit: see:
felix@sun ~/gits/clmystery (git)-[master] % echo "[the answer]" | md5sum -
32cacbec4b918e2fd130fd68cf818ae5 -
felix@sun ~/gits/clmystery (git)-[master] % echo "[the answer]" | md5 -
32CACBEC4B918E2FD130FD68CF818AE5 -
from clmystery.
Ohhh interesting. I'll add the -i
, thanks!
from clmystery.
Also strange that md5sum
is all uppercase for you, I tested this with m5sum
on Ubuntu and it was lowercase!
from clmystery.
Also strange that md5sum is all uppercase for you, I tested this with m5sum on Ubuntu and it was lowercase!
Mhhm, my md5sum
was also lowercase, it was the md5
that produced uppercase output (see my previous edit). But anyways, same thing :)
from clmystery.
Related Issues (12)
- Lot of missing streets HOT 11
- Detective Notepad++ HOT 1
- Licensing? HOT 1
- Solution Error HOT 2
- Conclusion HOT 5
- German translation HOT 2
- Solution check not working. ERROR: Illegal variable name. HOT 3
- Cheatsheat
- Markdown to PDF HOT 2
- The .zip file is redundant HOT 4
- Provide a way to check answer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clmystery.