How to Post to Notification Center From a Shell Script

Posting to Notification Center center from a shell script is a great way to let yourself know that a potentially long process has completed. Luckily, it's just one line:

osascript -e 'display notification "Holy **** it worked!" with title "The Main Thread"'

An aside: I'm still trying to figure out how best to include both short posts and long-form articles on this site. Consider this an experiment.

"How to Post to Notification Center From a Shell Script" was originally published on 01 Aug 2014.