#!/bin/sh
CGLAST="$HOME/.cglast"
test -z "$1" && cat -n "$CGLAST" && exit 0
NAMEPAT="*"
test -n "$2" && NAMEPAT="$2"
find . -type f -name "$NAMEPAT" | xargs grep -Hn "$1" | tee "$CGLAST" | cat -n
