How do I export sets from a Maya file?
You can use the following:
ls -typ objectSet;
Parent topic:
MEL FAQ for animation operations