I blogged before about my problems with opening files (especially dot files) from my console in Mac OS X. I described several workarounds like adding custom functions to your ~/.bashrc (like switchFinderOptions() or edit()) or installing TextMate. Turns out I missed a damn useful built-in command line tool which ships with Mac OS X - 'open'. Just typing:
opens the specified file with the default application for this file type. And it gets better.
opens a Finder window in starting in the specified directory. I especially love
I love it. It's my new favorite ;-)