Next: Editing Records, Previous: The Rec Format, Up: Top [Contents][Index]
Since recfiles are always human readable, you could lookup data simply
by opening an editor and searching for the desired information. Or
you could use a standard tool such as grep
to extract
strings matching a pattern. However, recutils provides a more powerful
and flexible way to lookup data. The following sections explore how
the recutils can be used in order to extract data from recfiles, from
very basic and simple queries to quite complex examples.
• Simple Selections: | Introducing recsel .
| |
• Selecting by Type: | Get the records of some given type. | |
• Selecting by Position: | Get the record occupying some position. | |
• Random Records: | Get a set of random records. | |
• Selection Expressions: | Get the records satisfying some expression. | |
• Field Expressions: | Selecting a subset of fields. | |
• Sorted Output: | Get the records in a given order. |