Extracting MK types for a list of stars

If a list of star numbers has been placed in a file (one number per line), the command 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

Example:

mk -f star.lst lists the spectral types for the stars whose numbers are contained in the file star.lst