I just got the DTrace book from Amazon and wanted to get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)
So I played with dtrace -l until I got the output to be just a sorted unique list of the providers (it also strips numbers off to keep the list concise).
Here is the resulting command:
sudo dtrace -l | perl -pe 's/^.*?\S+\s+(\S+?)([0-9]|\s).*/\1/' | sort | uniq
Mac OS X Hints
http://hints.macworld.com/article.php?story=2011041708150728