On 05/ 7/11 03:01 PM, Volker Braun wrote:
On Saturday, May 7, 2011 2:45:26 PM UTC+1, Dr David Kirkby wrote:
drkirkby@laptop:~/sage-4.7.rc0/spkg/standard/singular-3-1-1-4.p8$ find
src -exec cksum {} \; | awk '{print $1}' | cksum | awk '{print $1}'
3766045910
You also want to sort somewhere because find doesn't return the matches in
any particular order.
OK:
find src -print -exec cksum {} \; | awk '{print $1}' | sort | cksum | awk
'{print $1}'
gives what I assume will be the same output on all systems.
I'd prefer it if we also store the checksum for each file together with the
filename, so one can find out which file was changed. Though one would have
to write a bit more than just a one-liner to implement it. While we are at
it, cryptographically sign everything ;-)
I think once a file is known to have been changed, tracking down which one
manually should not be hard, so I don't really see the need to store the
checksums of every file.
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org