FLAC file format has integrated checksum?

I have seen it mentioned on several references that .FLAC format digital audio files have a “built in” checksum feature, much like .SFV which allows you to confirm that a file has not been altered or corrupted.

Is there any way to use this to batch check a bunch of FLAC files? I had a ton of CDs ripped to FLAC on an external hard drive that experienced some sector errors.
And at least a few of the FLAC files on it were corrupted, so I’d like to batch scan them all to see which are bad.

?

First google link has some helpful tips: How to validate a flac file

The official FLAC command-line tool allows you to test FLAC files. Just run the following command, substituting for the last argument the files you want to test:


flac --test *.flac

Thank you! The two links to the small executable files was exactly what I was looking for, all other solutions were either awkward(playing all the files in silent mode in foobar) or time consuming. Or was not about verifying FLAC files alone but comparing them to the source WAV files.