14

I have some 500 files of 650MB each, named bigfile.000 to bigfile.199 and I need to calculate the MD5 checksum of all files combined. The command I am using is:

cat bigfile.* | md5sum

I have the time, and I understand it will take hours to complete, but I still want to check the progress. Is there any way to do so? Like piping something in between and do a word count that doesn't affect performance much?

  • possible duplicate of Progress and speed with 'cp'? – karel May 9 '14 at 11:38
  • 3
    I think it's not a duplicate question - they are different questions but simply the same answer that solves two different problems. cp is different from cat anyway. – Kenneth L May 12 '14 at 6:45
17

Use pv. It is in the repos, and shows a nice progress bar.

pv bigfile.* | md5sum  

should do what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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