You can redirect streams and you can pipe them ... The sorted list is then piped into uniq. The -c (count) option counts the unique process names. Then, just for fun, we do the same thing for ...