mk
can extract the MK types
for the stars whose numbers are contained in the file. This uses the option
-f
and the syntax:
mk -f filename
mk -f star.lst
lists the spectral types for the
stars whose numbers are contained in the file star.lst