Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer
    
md5sum: login*: No such file or directory –  Richard Rodriguez 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 .. –  Richard Rodriguez Apr 7 '11 at 19:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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