Up: recinf

19.1 recinf Invocation

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


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

The default behavior of the tool 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 line resume won't have a type name:

     $ recinf data.rec

In addition of the common options described earlier (see Common Options) the program accepts the following options.

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 is composed by anonymous records only then don't emit any output.
Print the data in the form of sexps (lisp expressions) instead of rec format. This option is intended to be used by lisp programs.