#!/bin/bash # usage: cover files echo '=================================================================' for file in $* do echo $file echo '=================================================================' grep "#####" -A5 -B5 $file echo '=================================================================' done