amiaopensource / ltopers

Bash scripts to manage LTO cartridges with LTFS
https://github.com/amiaopensource/ltopers
MIT License
39 stars 8 forks source link

md5deep change #67

Closed NMAAHC closed 7 years ago

NMAAHC commented 7 years ago

Anyone have a strong preference for -l over -b in md5deep? We find -b makes comparing checksums much easier.

dericed commented 7 years ago

It does but then you lose the context of where the file is. hesitant on this

dericed commented 7 years ago

you can adjust the output of -l to the -b style with awk (not well tested):

md5deep -rl ~/Desktop | awk -F"/" '{print $1 $NF}'

of compare two outputs like:

diff <(cat listA.md5 | awk -F"/" '{print $1 $NF}' | sort -k2) <(cat listB.md5 | awk -F"/" '{print $1 $NF}' | sort -k2)

that would compare two check lists without consideration two the directory paths but only to the hash and filename

NMAAHC commented 7 years ago

OK. Our directory structures are not particularly complicated so I think we will just invoke Fleetwood Mac and go our own way on this one :)

dericed commented 7 years ago

potentially we could make an md5-compare script that accommodates the kind of comparison needed

privatezero commented 7 years ago

I totally have not used it so I don't know if this is relevant, but is this the type of thing the hackday 'checksomething' project could help with?