A quick and easy exercise in Unix shell programming with the Bourne-again shell ...

@vnikolov@ieji.de

A quick and easy exercise in Unix shell programming with the Bourne-again shell (`bash’).

What does the following do?

function m () { sha256sum "${1:?"?"}" | (read s t && sha256sum * | grep "^${s}") }

There is, of course, at least one more way to do that, perhaps less fancy.

#Bash
#BourneAgainShell
#Unix
#UnixShell