diff -r 4560c5623d7d -r ab7f333f1225 relpipe-data/examples-grep-cut-fstab.xml --- a/relpipe-data/examples-grep-cut-fstab.xml Tue May 11 21:35:54 2021 +0200 +++ b/relpipe-data/examples-grep-cut-fstab.xml Tue May 11 22:26:48 2021 +0200 @@ -29,7 +29,7 @@ We can put away the a attribute from the numbers relation:

- cat both.rp | relpipe-tr-cut 'numbers' 'b|c' | relpipe-out-tabular + cat both.rp | relpipe-tr-cut --relation 'numbers' --attribute 'b|c' | relpipe-out-tabular

and leave the letters relation unaffected:

@@ -112,7 +112,7 @@

Or we can remove a from both relations resp. keep there only attributes whose names match 'b|c' regex:

- cat both.rp | relpipe-tr-cut '.*' 'b|c' | relpipe-out-tabular + cat both.rp | relpipe-tr-cut --relation '.*' --attribute 'b|c' | relpipe-out-tabular

Instead of '.*' we could use 'numbers|letters' and in this case it will give the same result:

@@ -136,7 +136,9 @@

All the time, we are reducing the attributes. But we can also multiply them or change their order:

- cat both.rp | relpipe-tr-cut 'numbers' 'b|a|c' 'b' 'a' 'a' | relpipe-out-tabular + cat both.rp \ + | relpipe-tr-cut --relation 'numbers' --attribute 'b|a|c' --attribute 'b' --attribute 'a' --attribute 'a' \ + | relpipe-out-tabular

n.b. the order in 'b|a|c' does not matter and if such regex matches, it preserves the original order of the attributes; @@ -162,7 +164,7 @@ Record count: 2]]>

- The letters relation stays rock steady and relpipe-tr-cut 'numbers' does not affect it in any way. + The letters relation stays rock steady and relpipe-tr-cut --relation 'numbers' does not affect it in any way.

Process CSV files

@@ -195,7 +197,7 @@

and get result like this: