#!/bin/bash echo '=================================================================' for file in SPEX_*.?cov spex_*.?cov do echo $file grep "#####" $file echo '=================================================================' done