Filename extension | .rec |
---|---|
Type of format | Data interchange |
Open format? | yes |
Free format? | yes |
Website | www |
recfiles is a file format for human-editable, plain text databases. [1] [2]
Original author(s) | Jose E. Marchesi |
---|---|
Initial release | December 3, 2010 |
Stable release | 1.9 / April 16, 2022 [3] |
Repository | git |
Written in | C |
License | GNU General Public License |
Website | www |
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]
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.
# This is a recfile document.%rec:Text%type:Year intAuthor:Doug McIlroyYear:1964Note:The Origin of Unix PipesTitle:Unix Text ProcessingAuthor:Dale DoughertyAuthor:Tim O'ReillyYear:1987Publisher:Hayden BooksAuthor:William ShakespeareTitle:HamletYear:1599Year:1600Year:1601
Recutils from the GNU Project are a set of free command line utilities to process recfiles. [8] These include:
This example command would output the following three lines (of the two original entries, one having two authors):
$ recsel-e'Year > "1900"'-pAuthor Author: Doug McIlroyAuthor: Dale DoughertyAuthor: Tim O'Reilly