| Newsgroups |
gmane.comp.audio.eac.user |
| Message-ID |
<[email protected]> |
% shasum -a 256 --quiet -c sha256.txt
Unknown option: quiet
Type shasum -h for help
> On Oct 1, 2020, at 2:23 PM, Jerry Baker jbaker6953-/[email protected] [EAC] <[email protected]> wrote:
>
> The version of md5sum,sha256sum, and others I have allow the '--quiet'
> option which only generates output if there is a FAILED.
>
> On 10/1/2020 11:13 AM, Fred Maxwell [email protected] <mailto:[email protected]> [EAC] wrote:
> > That’s also a great method. Did you mean "find *" or was that supposed
> > to be "find .” to begin the search at the current directory?
> >
> >
> > I made some tweaks and came up with this Mac-friendly method:
> >
> > find . -type f -exec shasum -a 256 '{}' \; > sha256.txt
> > shasum -a 256 -c sha256.txt | grep FAILED
> >
> > Notes:
> > 1. md5sum is not installed by default on the Mac, but shasum is and
> > SHA256 is more robust.
> > 2. My music directory tree has multiple formats of music as well as
> > ancillary files like cover art, so I opened it up to all files.
> > 3. I don’t want to see thousands of “OK” lines, so I added the grep for
> > “FAILED”. I’m hoping I don’t encounter an artist, album, or track name
> > that contains “FAILED”. :)
> > 4. Your method with date-specific filenames makes sense, but I was
> > being lazy.
> > 5. My version assumes that your current working directory (as in ‘pwd’)
> > is the top level of your music directory structure when you start. The
> > find could be modified to specify that directory.
> >
> > Thanks, Jerry.
>
>