Created
November 3, 2015 19:37
-
-
Save spikeheap/53889b79b19033d4ade9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export XMLLINT_FILE=xmllint_20151103_1930.log | |
xmllint --schema docs/NHIC_ICU_v8.3.2-Final.xsd --noout docs/output/NIHRHIC_CC_8.3.2_Oxford\ 03112015.xml 2>&1 | grep -v "The attribute 'm' is required but missing." > $XMLLINT_FILE | |
# get an overview of the failure counts | |
cut -d':' -f3 $XMLLINT_FILE | sort | uniq -c | sort | |
# lookup a particular error (_0085 in this case): | |
cat $XMLLINT_FILE | grep _0085 | cut -d: -f7 | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment