The format of the command line for validating an indexed file is:
rebuild in-file -f
Rebuild can perform a number of validation checks and you can request all of them, or just a subset of them. Of course, the more checks you request, the longer the validation process takes.
In the following example Rebuild performs a full integrity check on the file:
rebuild test.dat -f