[brlug-general] General Digest, Vol 77, Issue 1
John Hebert
johnalexhebert at gmail.com
Thu Nov 5 21:13:51 CST 2009
On Thu, Nov 5, 2009 at 1:00 PM, <general-request at brlug.net> wrote:
> 1. md5sum and diff? (Brad Bendily)
> 2. Re: md5sum and diff? (William Anderson)
> ------------------------------
>
> Message: 2
> Date: Thu, 5 Nov 2009 10:23:16 -0600
> From: William Anderson <whanders at lasthonorableman.net>
>
> You should be able to just copy the md5sum from a website into a text
> file and just let md5sum do a check:
>
> $ md5sum testfile
> 68b329da9893e34099c7d8ad5cb9c940 testfile
> $ md5sum testfile > testfile.md5
> $ md5sum -c testfile.md5
> testfile: OK
>
> The format for the check file is the md5sum, two spaces, and the file
> name. You can also specify multiple files, one per line, and check
> several files at once (e.g. if your installing a piece of software and
> serveral dependencies, you can just download all the tar balls, copy the
> md5sum for each into a single file and let md5sum check them all).
>
>
>
Nifty. Didn't know about the "-c" flag. I think you missed a file arg in
there though?
md5sum -c testfile testfile.md5
testfile: OK
I'm trying to figure out something even lazier.
$ md5sum pcmciafloppy.img | sed 's/*/ /' > local.md5; curl
ftp://ibiblio.org/pub/Linux/distributions/damnsmall/current/pcmciafloppy.img.md5.txt>
remote.md5; diff local.md5 remote.md5
$
How could I use i/o redirection to make it simpler? The diff man page says
it can read from the input line, but I'm not sure how to make that work.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brlug.net/pipermail/general_brlug.net/attachments/20091105/843e81b9/attachment.html>
More information about the General
mailing list