#!/bin/bash cd /tmp/icmp || exit 1 for f in old.exe new.exe; do echo "== $f" if [ -f "$f" ]; then wrestool -l "$f" 2>/dev/null | grep -E 'type=14|type=3' | sed 's/^/ /' | head -12 printf ' icon images: ' wrestool -l "$f" 2>/dev/null | grep -c 'type=3' else echo " (missing)" fi done