nocomments

#!/bin/sh
# ~/bin/nocomments
# Remove all '#' commented lines and
# empty lines.  Use stdin and stdout.
# Written 2007 Hal Canary.
# Dedicated to the Public Domain.
grep -v '^\#\|^$' "$@"