Convenient names for grep patterns matching various symbol types, and shell functions that implement useful commands.
This needs a grep that supports -o. Most do!
In your shell initialization file:
. /path/to/grep-syms
Example usage:
$ grep -o $WORD foo.txt
$ grep-frequency -o $TAG bar.html