The command rem is used to query the remarks. It is most often used with star numbers and has only one option "-k", used to search for a string of characters in the remark file.
> ngc 2516
> rem list the file
> rem 10 27 29 search for the stars number 10 27 and 29
> rem -k Delta Scuti list the stars classified as Delta Scuti variables.