Imagine I have a filelist like this:

file1.php
file2.php
login1.php
login2.php
logout1.php
logout2.php

And I want to do an md5sum on files called login* <- something like that. I need to count md5 of all files starting with login, continuing with whatever.

How do I do this, please?

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted
md5sum login*

If that doesn't work, you're trying to take the md5sum of files that don't even exist.

link|improve this answer
md5sum: login*: No such file or directory – RiMMER Apr 7 '11 at 19:21
Then you're trying to take the md5sum of files that don't even exist. – Ignacio Vazquez-Abrams Apr 7 '11 at 19:26
Uhm I feel so stupid, I have no idea why this didn't work before, but I'd swear I tried this at some point. Well, thanks, it works .. – RiMMER Apr 7 '11 at 19:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.