yeah. it seems to me that using the -c flag is an extra step. that I
have to put the sum from the web
into a file, then generate a sum on the iso file I have, then add that
to the file too, then use the -c to compare?
Am i making it more difficult than it really is?

at least, to use my script, it does it both at the same time and from one cmd.
script.sh filetocheck checksumxxx

then it spits out, match or no match.
the strange thing is, after googling a bit to find something similar,
i found several post where people
are saying their sums dont match, but they think they have the same file.
I didn't read the details on all the post but it looks possible.
bb

On Thu, Nov 5, 2009 at 9:13 PM, John Hebert <[email protected]> wrote:
>
>
> On Thu, Nov 5, 2009 at 1:00 PM, <[email protected]> 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 <[email protected]>
>>
>> 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
> _______________________________________________
> General mailing list
> [email protected]
> http://mail.brlug.net/mailman/listinfo/general_brlug.net
>
>



-- 
Have Mercy & Say Yeah

_______________________________________________
General mailing list
[email protected]
http://mail.brlug.net/mailman/listinfo/general_brlug.net

Reply via email to