Recfiles Explained

recfiles
Extension:.rec
Nomimecode:yes
Genre:Data interchange
Free:yes
Open:yes

recfiles is a file format for human-editable, plain text databases.[1] [2]

GNU Recutils
GNU Recutils
Author:Jose E. Marchesi
Latest Release Version:1.9
Latest Release Date:[3]
Programming Language:C
Engines:-->
License:GNU General Public License

Databases using this file format can be edited using any text editor. Recfiles allow for basic relational database operations, such as typing, auto-incrementing, as well as a simple join operation.

Recutils is a collection of tools, like recfmt, recsel, and rec2csv used to work with recfile databases.[4] Various software libraries support the format.[5] [6] [7]

Syntax

Data are stored in text files with empty lines separating records. Fields within a record are lines starting with their name and a colon; it is possible to wrap long entries. Multiple record types can be maintained in a single text file.

Example

  1. This is a recfile document.

%rec: Text%type: Year int

Author: Doug McIlroyYear: 1964Note: The Origin of Unix Pipes

Title: Unix Text ProcessingAuthor: Dale DoughertyAuthor: Tim O'ReillyYear: 1987Publisher: Hayden Books

Author: William ShakespeareTitle: HamletYear: 1599Year: 1600Year: 1601

This example command would output the following three lines (of the two original entries, one having two authors):$ recsel -e 'Year > "1900"' -p AuthorAuthor: Doug McIlroyAuthor: Dale DoughertyAuthor: Tim O'Reilly

See also

Notes and References

  1. Web site: Purpose. GNU Recutils Manual. 2020-12-02. 2019-01-03. Jose E. Marchesi.
  2. Web site: GNU Recutils . James Tomasino . 2020-01-26 . 2020-02-09.
  3. Web site: Index of /gnu/recutils . ftp.gnu.org . 11 April 2023.
  4. Web site: GNU Recutils - GNU Project - Free Software Foundation.
  5. Web site: Relational pipes and GNU Recutils . František Kučera . 2019-04-08.
  6. Web site: Python-recutils. GitHub. 12 January 2022.
  7. Web site: Aisamanra/Rrecutils. GitHub. 13 January 2022.