Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:56:30+00:00 2026-06-17T21:56:30+00:00

I got a simple MD5SUM script in the works. Its pretty much done except

  • 0

I got a simple MD5SUM script in the works. Its pretty much done except for the part that displays the progress (percent of the file that’s been calculated to the user). I’m thinking of using a while loop w/ a dummy variable that checks if the MD5 has been calculated. The only problem is that md5sum (on linux) doesn’t return any kind feedback, except when the actual md5sum has been calculated. So, its difficult to show the users how much of the file has been processed. Here’s a copy of the script.

#!/bin/bash

#MD5 verification tool
#1st argument is file name of .iso, and the 2nd argument is the the MD5 hexsum.

echo Checking file $1 .....  
#calc md5 for file
SUM=`md5sum $1`
#insert while loop here?
#compare values
test $SUM = $2 && echo original || echo False 

#8cd98b693ce542b671edecaed48ab06d8c
# GNOME-64.iso

exit 0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:56:31+00:00Added an answer on June 17, 2026 at 9:56 pm

    Use pv, installable on all major distros. SUM=$(pv "$1" | md5sum) will show a pretty progress bar with throughput and everything, something like:

    bash> pv /media/secondary/backups/2013_01_12/* | md5sum
    10.2GB 0:01:32 [ 115MB/s] [====>                 ] 19% ETA 0:06:21
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a simple PHP script that sends an HTTP POST request via cURL,
I've got simple java-based ppt->swf sub-project that basically works. The open source software out
I got a simple form validation and submission that works great Here is my
I've got a simple application that is supposed to rotate a decorated wheel so
I've got a simple function script, the last line of which is to call
Got another simple question here that is eluding me. I have 2 classes: namespace
Got a simple question here to a problem that's grown over time. I have
I got a simple JavaScript that changes the inner HTML of an element when
I've got a simple Struts 2 application that I build and deploy to glassfish
I got a simple XML file that I want to validate against an XSD.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.