# HG changeset patch # User František Kučera # Date 1554717384 -7200 # Node ID 23247d93a0122292248b1a3c1b70ca5251de23a4 # Parent 3d217f0c876949eb018fdb7127d16482b31929eb examples: atom → recfile diff -r 3d217f0c8769 -r 23247d93a012 relpipe-data/examples-xquery-atom.xml --- 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 @@ +

Or with relpipe-out-recfile, we will get output in the recfile format (GNU Recutils), like this:

+ + +

For frequent usage we can create a script or funcrion called relpipe-in-atom 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 ]]>

diff -r 3d217f0c8769 -r 23247d93a012 relpipe-data/examples/atom.rec --- /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 + +…