MarcEdit’s command-line function has always had the ability to run validation tasks against the MarcEdit rules file. However, the program hasn’t included access to the cleaning functions of the validator. As of the last update, this has changed. If the –validate command is invoked without a rules file defined, the program will validate the structure of the data. If the –clean option is passed, the program will remove invalid structural data from the file.
Here’s an example of the command:
>> cmarcedit.exe -s “C:\Users\rees\Desktop\CLA_UCB 2016\Data File\sample data\bad_sample_records.mrc” –validate