relpipe-data/examples-grep-fstab.xml
branchv_0
changeset 325 4560c5623d7d
parent 244 d4f401b5f90c
equal deleted inserted replaced
324:3cbce8bb28c3 325:4560c5623d7d
    12 			If we are interested only in certain records in some relation, we can filter it using <code>relpipe-tr-grep</code>.
    12 			If we are interested only in certain records in some relation, we can filter it using <code>relpipe-tr-grep</code>.
    13 			If we want to list e.g. only Btrfs and XFS file systems from our <code>fstab</code> (see above), we will run:
    13 			If we want to list e.g. only Btrfs and XFS file systems from our <code>fstab</code> (see above), we will run:
    14 		</p>
    14 		</p>
    15 		
    15 		
    16 		
    16 		
    17 		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab | relpipe-tr-grep 'fstab' 'type' 'btrfs|xfs' | relpipe-out-tabular]]></m:pre>
    17 		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab \
       
    18 	| relpipe-tr-grep --relation 'fstab' --attribute 'type' --value 'btrfs|xfs' \
       
    19 	| relpipe-out-tabular]]></m:pre>
    18 				
    20 				
    19 		<p>and we will get following filtered result:</p>
    21 		<p>and we will get following filtered result:</p>
    20 		<pre><![CDATA[fstab:
    22 		<pre><![CDATA[fstab:
    21  ╭─────────────────┬──────────────────────────────────────┬──────────────────────┬───────────────┬──────────────────┬────────────────┬────────────────╮
    23  ╭─────────────────┬──────────────────────────────────────┬──────────────────────┬───────────────┬──────────────────┬────────────────┬────────────────╮
    22  │ scheme (string) │ device                      (string) │ mount_point (string) │ type (string) │ options (string) │ dump (integer) │ pass (integer) │
    24  │ scheme (string) │ device                      (string) │ mount_point (string) │ type (string) │ options (string) │ dump (integer) │ pass (integer) │