#!/bin/bash for func in $(cat iofunctions.txt) do echo "$func: $(grep "$func" *.c | wc -l)" done