1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # IN=$1 diff -U0 \ <( for i in `seq 0 255`; do printf "0x%02x\\n" $i done ) \ <(sed -n '/^ *$/d; s/#define [A-Z0-9_]* *//; p' $IN | sort | uniq)