Solaris Tips
Comma separate a list
The challenge here is to avoid a trailing comma.
$ echo "foo\nbar\n" | awk ' {printf "%s%s",s,$0;s=","}END{print ""} ' foo,bar
Run a command on all hosts in a netgroup
mrsh -P -c 'uptime' your-netgroup
Find all members in a sudoers group
ypmatch sqladmin group