--- a/relpipe-data/examples.xml Tue Dec 04 22:43:03 2018 +0100
+++ b/relpipe-data/examples.xml Thu Dec 06 15:13:28 2018 +0100
@@ -67,7 +67,7 @@
<p>
In the first part, we prepend a single record (<code>relpipe-in-cli</code>) before the data coming from STDIN (<code>cat</code>).
Then, we use <code>relpipe-out-nullbyte</code> to convert relational data to values separated by a null-byte.
- This command processes only attribute values (relation and attribute names are skipped).
+ This command processes only attribute values (skips relation and attribute names).
Then we used <code>xargs</code> to read the null-separated values and execute a Perl command for each record (pass to it a same number of arguments, as we have attributes: <code>--max-args=7</code>).
Perl does the actual formatting: adds padding and does some little tunning (merges two attributes and replaces empty values with <em>none</em>).
</p>
@@ -89,7 +89,7 @@
<p>
For just mere <code>fstab</code> reformatting, this approach is a bit overengineering.
- Wo could skip the whole relational thing and do just something like this:
+ We could skip the whole relational thing and do just something like this:
</p>
<m:pre jazyk="bash">cat /etc/fstab | grep -v '^#' | sed -E 's/\s+/\n/g' | tr \\n \\0 | xargs -0 -n7 ...</m:pre>
--- a/relpipe-data/roadmap.xml Tue Dec 04 22:43:03 2018 +0100
+++ b/relpipe-data/roadmap.xml Thu Dec 06 15:13:28 2018 +0100
@@ -38,6 +38,7 @@
<ul>
<li>tabular</li>
<li>XML</li>
+ <li>nullbyte</li>
<li>GUI in Qt</li>
<li>ODS (LibreOffice)</li>
</ul>
--- a/relpipe-data/specification.xml Tue Dec 04 22:43:03 2018 +0100
+++ b/relpipe-data/specification.xml Thu Dec 06 15:13:28 2018 +0100
@@ -57,7 +57,7 @@
<h3>relpipe-in-cli</h3>
<p>
- A tool that generates a single relation. I we want more relations in a single stream, we just call this command multiple times:
+ A tool that generates a single relation. If we want more relations in a single stream, we just call this command multiple times:
</p>
<m:pre jazyk="bash"><![CDATA[
@@ -121,7 +121,7 @@
Also attribute names and types are lost by default.
</p>
<p>
- Is suitable for passing a single relation to <code>xargs -0 -nX</code> (where X is the attribute count)
+ Is suitable for passing a single relation to <code>xargs --null --max-args=X</code> (where X is the attribute count)
or other command that accepts values separated by a null-byte.
</p>