relpipe-tr-grep has new syntax since v0.18: --relation, --attribute, --value v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 11 May 2021 21:35:54 +0200
branchv_0
changeset 325 4560c5623d7d
parent 324 3cbce8bb28c3
child 326 ab7f333f1225
relpipe-tr-grep has new syntax since v0.18: --relation, --attribute, --value
relpipe-data/examples-grep-cut-fstab.xml
relpipe-data/examples-grep-fstab.xml
--- a/relpipe-data/examples-grep-cut-fstab.xml	Sun May 09 19:43:32 2021 +0200
+++ b/relpipe-data/examples-grep-cut-fstab.xml	Tue May 11 21:35:54 2021 +0200
@@ -28,7 +28,7 @@
 		</p>
 		
 		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab \
-	| relpipe-tr-grep 'fstab' 'type' '^btrfs|xfs$' \
+	| relpipe-tr-grep --relation 'fstab' --attribute 'type' --value '^btrfs|xfs$' \
 	| relpipe-tr-cut 'fstab' 'mount_point' \
 	| relpipe-out-nullbyte \
 	| while read -r -d '' m; do
@@ -194,7 +194,7 @@
 		
 		<m:pre jazyk="bash"><![CDATA[cat tasks.csv \
 	| relpipe-in-csv \
-	| relpipe-tr-grep 'csv' 'type' 'FIXME' \
+	| relpipe-tr-grep --relation 'csv' --attribute 'type' --value 'FIXME' \
 	| relpipe-tr-cut 'csv' 'file|description' \
 	| relpipe-out-tabular]]></m:pre>
 	
--- a/relpipe-data/examples-grep-fstab.xml	Sun May 09 19:43:32 2021 +0200
+++ b/relpipe-data/examples-grep-fstab.xml	Tue May 11 21:35:54 2021 +0200
@@ -14,7 +14,9 @@
 		</p>
 		
 		
-		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab | relpipe-tr-grep 'fstab' 'type' 'btrfs|xfs' | relpipe-out-tabular]]></m:pre>
+		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab \
+	| relpipe-tr-grep --relation 'fstab' --attribute 'type' --value 'btrfs|xfs' \
+	| relpipe-out-tabular]]></m:pre>
 				
 		<p>and we will get following filtered result:</p>
 		<pre><![CDATA[fstab: