#!/bin/bash #Usage: ./find-firmware /path/to/kernel/tree #Currently define possible firmware to be 32 or more comma seperated consecutive constants for i in $(find $1 -type f); do tr -d $'\n\t{} ' < "$i" | egrep -q '([,:][0-9a-fA-Fx\\]+){32,}' && echo "$i"; done | fgrep -vf ./firmware-removed | fgrep -vf ./firmware-false-positive