nocomments

By Hal Canary, 2008-08-10 09:31:10 (link)
#computers-code

#!/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 '^\#\|^$' "$@"

(back)