I always knew you could open files in bbedit from the command line with bbedit filename. But I just realized that you can pipe to bbedit, too! For example:
# mysqldump some_db_name | bbedit
Pretty cool!
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030423181504102