Next: , Up: Invoking the Utilities


17.1 recinf

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.

Synopsis:

     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
     10

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

-t type
--type=type
Select records of a given type only.
-d
--descriptor
Print all the record descriptors present in the file.
-n
--names-only
Output just the names of the record types found in the input. If the input is contains anonymous records only then don't emit any output.
-S
--print-sexps
Print the data in the form of sexps (lisp expressions) instead of rec format. This option is intended to be used by lisp programs.