Code Monkey home page Code Monkey logo

Comments (5)

veltman avatar veltman commented on September 7, 2024
  1. What OS are you using?

  2. What happens if you just run:

echo "[the answer]" | $(command -v md5 || command -v md5sum)
  1. What happens if you just run:
grep -q "32cacbec4b918e2fd130fd68cf818ae5" solution && echo $?

from clmystery.

futile avatar futile commented on September 7, 2024
  1. 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.

veltman avatar veltman commented on September 7, 2024

Ohhh interesting. I'll add the -i, thanks!

from clmystery.

veltman avatar veltman commented on September 7, 2024

Also strange that md5sum is all uppercase for you, I tested this with m5sum on Ubuntu and it was lowercase!

from clmystery.

futile avatar futile commented on September 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.