A rough selection on the luminosity class is provided by the
command mk and the option
-eq. The keyword is cl.
It is still imperfect because the string search does not separate I and II
or V and IV.
Example:
mk cl -eq Ia extracts the Ia supergiants, but also the Iab