#!/bin/sh -e flist=$1 modules=$2 output=$3 while read MOD ; do [ -n "$MOD" ] || continue cat $flist | grep /$MOD[.]ko\$ >> $output || echo Module $MOD missing done < $modules