examples: atom → recfile v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 08 Apr 2019 11:56:24 +0200
branchv_0
changeset 254 23247d93a012
parent 253 3d217f0c8769
child 255 94b533007e77
examples: atom → recfile
relpipe-data/examples-xquery-atom.xml
relpipe-data/examples/atom.rec
--- a/relpipe-data/examples-xquery-atom.xml	Mon Apr 08 10:51:40 2019 +0200
+++ b/relpipe-data/examples-xquery-atom.xml	Mon Apr 08 11:56:24 2019 +0200
@@ -35,6 +35,10 @@
 		
 		<m:pre jazyk="text" src="examples/atom.txt"/>
 		
+		<p>Or with <code>relpipe-out-recfile</code>, we will get output in the recfile format (<a href="https://www.gnu.org/software/recutils/">GNU Recutils</a>), like this:</p>
+		
+		<m:pre jazyk="text" src="examples/atom.rec"/>
+		
 		<p>
 			For frequent usage we can create a script or funcrion called <code>relpipe-in-atom</code>
 			that reads Atom XML on STDIN and generates relational data on STDOUT.
@@ -45,7 +49,7 @@
 wget … | relpipe-in-atom | relpipe-out-csv
 wget … | relpipe-in-atom | relpipe-out-gui
 wget … | relpipe-in-atom | relpipe-out-nullbyte | while read_nullbyte published title url; do echo "$title"; done
-wget … | relpipe-in-atom | relpipe-out-csv | csv2rec | …
+wget … | relpipe-in-atom | relpipe-out-recfile
 ]]></m:pre>
 
 		<p>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/relpipe-data/examples/atom.rec	Mon Apr 08 11:56:24 2019 +0200
@@ -0,0 +1,15 @@
+%rec: atom
+
+published: 2018-12-24T13:37:24Z
+title: GNU Bash: Vánoční tipy
+url: https://blog.frantovo.cz/c/370/GNU%20Bash%3A%20V%C3%A1no%C4%8Dn%C3%AD%20tipy
+
+published: 2018-08-04T23:23:00Z
+title: HiFive1 – deska s otevřeným čipem RISC-V
+url: https://blog.frantovo.cz/c/368/HiFive1%20%E2%80%93%20deska%20s%C2%A0otev%C5%99en%C3%BDm%20%C4%8Dipem%20RISC-V
+
+published: 2018-06-30T13:37:08Z
+title: The Things Network – LoRaWAN – IoT
+url: https://blog.frantovo.cz/c/366/The%20Things%20Network%20%E2%80%93%20LoRaWAN%20%E2%80%93%C2%A0IoT
+
+…