Next: , Up: Invoking the Utilities

17.1 Invoking recinf

recinf reads the given rec files (or the data from standard input if no file is specified) and prints a summary of the record types contained in the input.


     recinf [option]... [file]...

The default behavior is to emit a line per record type in the input containing its name and the number of records of that type:

     $ recinf hackers.rec tasks.rec
     25 Hacker
     102 Task

If the input contains anonymous records, i.e. records that are before the first record descriptor, the corresponding output line won't have a type name:

     $ recinf data.rec

In addition to the common options described earlier the program accepts the following options.

-t type
Select records of a given type only.
Print all the record descriptors present in the file.
Output just the names of the record types found in the input. If the input contains only anonymous records then output nothing.
Print the data in the form of sexps (Lisp expressions) instead of rec format. This option can be useful for, of course, Lisp programs.