diff -r 9c1d0c5ed599 -r d4f401b5f90c relpipe-data/examples-cli-stdin.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/relpipe-data/examples-cli-stdin.xml Tue Feb 05 19:18:28 2019 +0100 @@ -0,0 +1,77 @@ + + + Reading STDIN + generating relational data from values on standard input + 00200 + + + +

+ The number of CLI arguments is limited and they are passed at once to the process. + So there is option to pass the values from STDIN instead of CLI arguments. + Values on STDIN are expected to be separated by the null-byte. + We can generate such data e.g. using echo and tr (or using printf or other commands): +

+ + + +

+ The output is same as above. + We can use this approach to convert various formats to relational data. + There are lot of data already in the form of null-separated values e.g. the process arguments: +

+ + + +

If we have mc /etc/ /tmp/ running in some other terminal, the output will be:

+ +
+ +

+ Also the find command can produce data separated by the null-byte: +

+ + + +

Will display something like this:

+ +
+ +
+ +