3 countw=`awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
4 for b in balance*.cfg; do
5 countb=`awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
6 if [ "$countw" != "$countb" ]; then
7 echo "Mismatch between balanceXonotic.cfg and $b. Aborting."
8 echo "Differences are:"
11 awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' > "$A"
12 awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' > "$B"
13 echo "< missing in $b"
14 echo "> must get removed from $b"
15 diff "$A" "$B" | grep '^[<>]' | sort