Recfiles

recfilesFilename extension| ``.rec``

|

Type of format| Data interchange
Website| www.gnu.org/software/recutils/

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

Databases using this file format can be edited using any text editor. recfiles allow for basic relational database operations, 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.[3] Various software libraries support the format.[4][5][6]

## Contents

* 1 Syntax
* 2 Example
* 3 See also
* 4 References

## 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

# This is a recfile document.

%rec: Texts
%type: Year int

Author: Doug McIlroy
Year: 1964
Note: The Origin of Unix Pipes

Title: Unix Text Processing
Author: Dale Dougherty
Author: Tim O'Reilly
Year: 1987
Publisher: Hayden Books

Author: William Shakespeare
Title: Hamlet
Year: 1599
Year: 1600
Year: 1601

This example command would output the following three lines (of the two original entries, one having two authors):

$ recsel -e 'Year > "1900"' -p Author
Author: Doug McIlroy
Author: Dale Dougherty
Author: Tim O'Reilly

## See also

* asciidoc
* TOML
* org-mode

## References

1. ↑ Marchesi, Jose E (2019-01-03). "Purpose". GNU Recutils Manual. https://www.gnu.org/software/recutils/manual/Purpose.html.
2. ↑ James Tomasino (2020-01-26). "GNU Recutils". https://labs.tomasino.org/gnu-recutils/.
3. ↑ "GNU Recutils - GNU Project - Free Software Foundation". https://www.gnu.org/software/recutils/.
4. ↑ František Kučera (2019-04-08). "Relational pipes and GNU Recutils". https://lists.gnu.org/archive/html/help-recutils/2019-04/msg00000.html.
5. ↑ "Python-recutils". 12 January 2022. https://github.com/maninya/python-recutils/.
6. ↑ "Aisamanra/Rrecutils". 13 January 2022. https://github.com/aisamanra/rrecutils/.

* v
* t
* e

Data exchange formats

Human readable formats|

* Atom
* XML
* YAML
* JSON
* RDF
* Rebol
* Property list

Binary formats|

* AMF
* ASN.1
* SMI
* Avro
* BSON
* CBOR
* FlatBuffers
* MessagePack
* Protocol Buffers
* Thrift
* Smile
* XDR

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Recfiles. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Recfiles&oldid=2631326"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template