#!/bin/sh -e
#
# grpf - grep in files matching the name pattern given as first argument

set -- "$1" "$2" "$*"
find . -type f -name "$1*" | while read -r f; do
  printf '%s ' "${f}" && grep --color=always -in "$2" "${f}"
done | less -F
