DOKK / manpages / debian 11 / wcslib-tools / fitshdr.1.en
FITSHDR(1) User Commands FITSHDR(1)

fitshdr - List headers from a FITS file

fitshdr [-q N] [<infile>]

List headers from a FITS file specified on the command line, or else on stdin, printing them as 80-character keyrecords without trailing blanks.

Quit after reading the Nth header, where N is an integer (optional space between -q and N).
January 2021 fitshdr 7.4