1 #!/bin/sh 2 3 grep '^#define' dummy.h | cut -f2 | \ 4 while read func; do 5 grep -q -F -- "${func}(" syscall.h && echo "Defined as macro and as func: $func" 6 done 7