Debugging notes in_20140318>find . -name "*.xml"|c 56243 in_20140318>g -r '' . |c 28975 ==> apparently, there are 56243 converted files, but only 28975 have wordcount element in meta-data Testing word count in the converted files with grep-friendly output. mwc ==> wordcount stemming from the meta-data ("" = NONE or a number that can be 0) twc ==> wordcount calculated by the test script Example: - find all files that don't have a element in the meta-data grep 'mwc=""' TEST_FILE debug>grep 'mwc=""' 20140318_wct.xml |c 27268 - some of the number pairs are equal, some are slightly different, some have bigger differences: why? I use only whitespace as separator. - why do not have all converted files a wordcount-element? grep ' ==> a short sight at the content proves that it has much more words than 0!!!