3
votes
1answer
101 views

Generating/validating checksums in a single line?

When I generate checksums for my files, I have to do a bit of extra work to get them formatted properly: CHECKSUM="$(shasum "$file" | cut -b 1-40)" echo -n "$CHECKSUM" > "$file.sha" This is to ...
2
votes
2answers
577 views

Running sha1sum into several directories

I have several directories that share a common parent directory. In each directory there are regular files, but no other subdirectories. Something like this: top/dir-1 top/dir-1/file-11 ...
-1
votes
1answer
3k views

Bash function to compare two binary files [closed]

I need a function to compare 2 binary files, here the requirements: 2 files, not 3 or 4 files can't be assumed to exist avoid running checksum (CRC/MD5/SHA/...) until one must if running multiple ...