Last active
November 2, 2017 09:29
-
-
Save delfer/9f280ab7d86b4c2528239ca12da78405 to your computer and use it in GitHub Desktop.
Compare XML
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
| #/bin/bash | |
| echo > result | |
| for i in QU_*.xml.xsd | |
| do | |
| for j in QU_*.xml.xsd | |
| do | |
| DIFF=$(comm -12 --nocheck-order $i $j | wc -l) | |
| echo $DIFF $i $j >> result | |
| done | |
| done |
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
| #/bin/bash | |
| echo > result_md5 | |
| for i in QU_*.xml.xsd | |
| do | |
| for j in QU_*.xml.xsd | |
| do | |
| COMM=$(comm -12 --nocheck-order $i $j) | |
| DIFF=$(echo $COMM | wc -l) | |
| SUMM=$(echo $COMM | md5sum) | |
| echo $DIFF $i $j >> result_md5 | |
| done | |
| done |
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
| for i in *.xml; do java -jar trang.jar $i $i.xsd ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment