Using awk to extract the n'th column (Unix->General)nmoutputs a three-column format. I needed to get the set of defined symbols (in particular those that start with__, in tracking down a C++ linking problem), which is the third column.awkis good for that. Use$Nto get the nth column (zero-index). This pipeline did the trick:
nm ./oopack.o | awk '{print $2}' | sort | grep __(Thanks to DougEDoug for the pointer)