#!/bin/bash

sn=${0##*/}
ext=${sn%%grep}

find -name \*\.$ext -exec grep -H "$1" {} \;
