relpipe-data/examples.xml
branchv_0
changeset 223 6402cd6921c5
parent 216 bbc9c89122f1
child 232 c7d05cf04b76
equal deleted inserted replaced
222:a02847f786d9 223:6402cd6921c5
   453 		<p>
   453 		<p>
   454 			Even the relation names and attribute names are specified as a regular expression, so we can (purposefully) modify multiple relations or attributes.
   454 			Even the relation names and attribute names are specified as a regular expression, so we can (purposefully) modify multiple relations or attributes.
   455 			For example we can put zeroes in both <code>dump</code> and <code>pass</code> attributes:
   455 			For example we can put zeroes in both <code>dump</code> and <code>pass</code> attributes:
   456 		</p>
   456 		</p>
   457 		
   457 		
   458 		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab | relpipe-tr-sed 'fstab' 'dump|pass' '.*' '0' | relpipe-out-fstab]]></m:pre>
   458 		<m:pre jazyk="bash"><![CDATA[relpipe-in-fstab | relpipe-tr-sed 'fstab' 'dump|pass' '.+' '0' | relpipe-out-fstab]]></m:pre>
   459 		
   459 		
   460 		<p>
   460 		<p>
   461 			n.b. the data types must be respected, we can not e.g. put <code>abc</code> in the <code>pass</code> attribute because it is declared as <code>integer</code>.
   461 			n.b. the data types must be respected, we can not e.g. put <code>abc</code> in the <code>pass</code> attribute because it is declared as <code>integer</code>.
   462 		</p>
   462 		</p>
   463 		
   463