Configcompare May 2026
xmllint --format --c14n file1.xml > file1_normalized.xml Now compare the normalized files:
case $EXT in json) diff -u <(jq -S . "$FILE1") <(jq -S . "$FILE2") ;; yaml|yml) diff -u <(yq -P . "$FILE1") <(yq -P . "$FILE2") ;; xml) diff -u <(xmllint --format --c14n "$FILE1") <(xmllint --format --c14n "$FILE2") ;; *) diff -u "$FILE1" "$FILE2" ;; esac configcompare
ConfigCompare is not just about seeing what changed – it's about understanding why a change matters. Use structural tools, not raw line diffs, and you'll debug config issues in seconds instead of hours. xmllint --format --c14n file1
# Using jq to show only differing paths diff <(jq -S . file1.json) <(jq -S . file2.json) | grep '^[<>]' | sed 's/^[<>] //' Often you want to ignore timestamps, versions, or auto-generated IDs. "$FILE1") <(yq -P