If you want to try tes3cmd, 1 thru 5 could be replaced with:
tes3cmd dump -l -t npc_ -m "health: 0" "Merged Objects.esp"
If you leave out the "-l" it will show the entire record, if you want to just check that it's working as you expect. The "-m" parameter for matching can be tweaked too.
I've been dawdling on getting around to a merged objects tool. I need to just decide on which language to use and start doing something.
I really must get round to installing some kind of Perl and trying out tes3cmd...
I think that TESTool's cleaning function (with Restricted options set) is still worthwhile:
* Remove any default GMST records (including "evil" 72 entries).
* Remove any records that are identical to the records found in the morrowind.esm, tribunal.esm or bloodmoon.esm. There only two exceptions to this:
o For INFO records NNAM/PNAM fields are ignored during comparison (unless restricted dialog cleaning has been enabled)
o LTEX records (land textures) are not removed.
* Remove any object references inside CELL records that are identical to the references in the default ESM files.
* Remove AMBI(ambient light) and WGHT(water level) fields from the CELL records that are identical to the references in the default ESM files.
* Remove empty CELL records that do not have any related LAND/PGRD records. If restricted cell cleaning is enabled, then only STANDARD empty cells will be removed.
* Remove any DIAL (dialog) records that do not have associated INFO records, unless it is a journal dialog (type 4).
* Remove any duplicate objects (two objects with same ID) if requested by users. Re-saving plugin in the TES Construction Set will also eliminate duplicate objects.
* During save plugin will be automatically upgraded to the file format version 1.3
There
are some things that it misses like http://wrye.ufrealms.net/GMST%20Vaccine.html and http://planetelderscrolls.gamespy.com/View.php?id=6446&view=Mods.Detail.